Skip to content

🏜️ Oasis.nvim v4.1.0: Performance & Polish

Choose a tag to compare

@uhs-robert uhs-robert released this 16 Jan 02:38
· 273 commits to main since this release

⚑ Performance Improvements

This release focuses on startup performance with lazy-loading optimizations:

  • Lazy-load modules: Defer module loading until actually needed
  • Lazy-load light theme generation: Only generate when switching to light mode
  • Optimized highlight pipeline: Streamlined highlight application
  • Deferred initialization: Toggle functions and integrations load on demand
  • Added benchmark: New startup performance test (test/startup_benchmark.lua)

🚨 Breaking Changes

Legacy Light Themes Removed

The following deprecated themes have been removed as announced in v4.0.0:

Removed Theme Migration
oasis_dawn Use any style with light_intensity = 1
oasis_dawnlight Use any style with light_intensity = 2
oasis_day Use any style with light_intensity = 3
oasis_dusk Use any style with light_intensity = 4
oasis_dust Use any style with light_intensity = 5

Tip: The night style provides the closest match to the old light themes.

✨ New Features

Configurable Plugin Integration System

  • New integrations config option to enable/disable plugin highlights
  • Consolidated plugin highlights into theme generator for better performance
require("oasis").setup({
  integrations = {
    default_enabled = true,  -- Enable all by default
    plugins = {
      fzf_lua = true,
      gitsigns = true,
      lazy = true,
      mini_clue = true,
      -- ... and more
    },
  },
})

mini.nvim Support

LuaLS Type Definitions

  • Comprehensive type annotations for better IDE support
  • Added fg.comment, theme.cursor, and git palette types

Enhanced Override System

  • Hierarchical highlight overrides: More flexible customization
  • Improved palette overrides: Better deep merge handling

New Syntax Highlights

  • LSP type and type modification highlights
  • Additional Treesitter highlight groups for Lua
  • PmenuBorder support for popup menu borders

New Extras

  • bat - Syntax highlighting theme for bat
  • Warp - Terminal theme support (PR #25 - thanks @sjoeboo!)
  • CSS themes - CSS custom properties export
  • JSON themes - JSON color palette export
  • Lua themes - Lua table color export
  • Improved Zed themes (PR #23 - thanks @sjoeboo!)

πŸ› Bug Fixes

  • lazygit: Fixed activeBorderColor and selectedLineBgColor
  • NormalFloat: Use palette float colors correctly (ref #29)
  • Plugin detection: Resolved load timing issues
  • OasisWCAG: Handle dual-mode palettes properly
  • Lualine: Eliminated Lua diagnostics warnings
  • tmux: Ensure hex colors use lowercase for mode-style compatibility
  • WezTerm: Improved readability of inactive tabs in light themes

🎨 Style Refinements

  • Improved visual selection and search contrast across palettes
  • Better terminal color visibility (blue, red, yellow)
  • Refined border colors in dark themes
  • Standardized string syntax colors for improved contrast
  • Made sign column background transparent
  • Removed distinct NormalNC highlighting for cleaner appearance

πŸ“¦ Full Changelog

v4.0.0...v4.1.0