This commit is contained in:
Snoweuph 2026-02-27 21:57:32 +01:00 committed by GitHub
commit f0e799352b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 1 deletions

View file

@ -226,6 +226,8 @@
[`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim), [`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim),
you're crazy. you're crazy.
- Added neovim builtin theme `habamax`.
[vagahbond](https://github.com/vagahbond): [codewindow.nvim]: [vagahbond](https://github.com/vagahbond): [codewindow.nvim]:
https://github.com/gorbit99/codewindow.nvim https://github.com/gorbit99/codewindow.nvim

View file

@ -8,6 +8,10 @@
inherit (lib.trivial) boolToString warnIf; inherit (lib.trivial) boolToString warnIf;
inherit (lib.nvim.lua) toLuaObject; inherit (lib.nvim.lua) toLuaObject;
in { in {
habamax = {
builtin = true;
setup = _: "vim.cmd('colorscheme habamax')";
};
base16 = { base16 = {
setup = {base16-colors, ...}: '' setup = {base16-colors, ...}: ''
-- Base16 theme -- Base16 theme

View file

@ -65,7 +65,10 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim = { vim = {
startPlugins = [cfg.name]; startPlugins =
if (supportedThemes.${cfg.name} ? builtin) && supportedThemes.${cfg.name}.builtin
then []
else [cfg.name];
luaConfigRC.theme = entryBefore ["pluginConfigs" "lazyConfigs"] '' luaConfigRC.theme = entryBefore ["pluginConfigs" "lazyConfigs"] ''
${cfg.extraConfig} ${cfg.extraConfig}
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}} ${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}