Skip to content

fix(nvim): load one colorscheme eagerly, update stale treesitter capture overrides - #97

Draft
AH-Merii wants to merge 1 commit into
mainfrom
fix/nvim-colorschemes
Draft

AH-Merii wants to merge 1 commit into
mainfrom
fix/nvim-colorschemes

Conversation

@AH-Merii

@AH-Merii AH-Merii commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Three colorschemes loaded eagerly at startup when only one of them can be active, and catppuccin's highlight_overrides were written against the pre-0.9 treesitter capture names — TSDanger, @parameter.reference, @text.* and friends — so most of them linked groups that no longer exist and the theme they were tuning largely rendered with its own defaults. The NonText/SpecialKey colours had the same problem from the other end: set in options.lua, which runs before any colorscheme, and overwritten as soon as one loaded.

Closes #80

@AH-Merii AH-Merii left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one call in there worth a second opinion​

-- Alternative theme. Switch with `:colorscheme catppuccin-frappe` (or -latte/-macchiato/-mocha):
-- Neovim >= 0.12 bundles its own `colors/catppuccin.vim`, so the bare name resolves to that
-- file and never loads this plugin; the flavour names are only provided here.
lazy = true,

@AH-Merii AH-Merii Sep 9, 2026

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coinflip: I kept catppuccin and tokyonight as lazy = true specs instead of deleting them, so :colorscheme catppuccin-frappe or :colorscheme tokyonight still works and only onedark pays for startup.

the cost is that most of this file is now config for two themes you may never load, including the treesitter capture overrides I just rewrote. if you're never switching back, say so and I'll delete both specs, the file gets a lot shorter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nvim colorschemes: three loaded eagerly, stale treesitter capture names, install.colorscheme mismatch

1 participant