diff --git a/docs/manual/release-notes/rl-0.9.md b/docs/manual/release-notes/rl-0.9.md index 662f7aeb..790c062f 100644 --- a/docs/manual/release-notes/rl-0.9.md +++ b/docs/manual/release-notes/rl-0.9.md @@ -172,6 +172,8 @@ - Added [`golangci-lint`](https://golangci-lint.run/) for more diagnostics. +- Added neovim builtin theme `habamax`. + [vagahbond](https://github.com/vagahbond): [codewindow.nvim]: https://github.com/gorbit99/codewindow.nvim diff --git a/modules/plugins/theme/supported-themes.nix b/modules/plugins/theme/supported-themes.nix index c2a5e1ca..879659bd 100644 --- a/modules/plugins/theme/supported-themes.nix +++ b/modules/plugins/theme/supported-themes.nix @@ -8,6 +8,10 @@ inherit (lib.trivial) boolToString warnIf; inherit (lib.nvim.lua) toLuaObject; in { + habamax = { + builtin = true; + setup = _: "vim.cmd('colorscheme habamax')"; + }; base16 = { setup = {base16-colors, ...}: '' -- Base16 theme diff --git a/modules/plugins/theme/theme.nix b/modules/plugins/theme/theme.nix index b3147c00..44a243f1 100644 --- a/modules/plugins/theme/theme.nix +++ b/modules/plugins/theme/theme.nix @@ -65,7 +65,10 @@ in { config = mkIf cfg.enable { vim = { - startPlugins = [cfg.name]; + startPlugins = + if (supportedThemes.${cfg.name} ? builtin) && supportedThemes.${cfg.name}.builtin + then [] + else [cfg.name]; luaConfigRC.theme = entryBefore ["pluginConfigs" "lazyConfigs"] '' ${cfg.extraConfig} ${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}