Repository navigation
ποΈ Oasis.nvim v4.1.0: Performance & Polish
β‘ 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
nightstyle provides the closest match to the old light themes.
β¨ New Features
Configurable Plugin Integration System
- New
integrationsconfig 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
PmenuBordersupport 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
activeBorderColorandselectedLineBgColor - 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
NormalNChighlighting for cleaner appearance