Skip to content

Commit d266883

Browse files
committed
theme/habamax: add neovim builtin theme habamax
1 parent cf066ec commit d266883

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

docs/manual/release-notes/rl-0.9.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,5 @@
150150
151151
- Added [Selenen](https://github.com/kampfkarren/selene) for more diagnostics in
152152
`languages.lua`.
153+
154+
- Added neovim builtin theme `habamax`.

modules/plugins/theme/supported-themes.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
inherit (lib.trivial) boolToString warnIf;
99
inherit (lib.nvim.lua) toLuaObject;
1010
in {
11+
habamax = {
12+
builtin = true;
13+
setup = _: "vim.cmd('colorscheme habamax')";
14+
};
1115
base16 = {
1216
setup = {base16-colors, ...}: ''
1317
-- Base16 theme

modules/plugins/theme/theme.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ in {
6565

6666
config = mkIf cfg.enable {
6767
vim = {
68-
startPlugins = [cfg.name];
68+
startPlugins =
69+
if (supportedThemes.${cfg.name} ? builtin) && supportedThemes.${cfg.name}.builtin
70+
then []
71+
else [cfg.name];
6972
luaConfigRC.theme = entryBefore ["pluginConfigs" "lazyConfigs"] ''
7073
${cfg.extraConfig}
7174
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}

0 commit comments

Comments
 (0)