Skip to content

Commit 841f1b1

Browse files
committed
theme/habamax: add neovim builtin theme habamax
1 parent 62090f4 commit 841f1b1

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
@@ -216,6 +216,8 @@
216216
[`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim),
217217
you're crazy.
218218
219+
- Added neovim builtin theme `habamax`.
220+
219221
[vagahbond](https://github.com/vagahbond): [codewindow.nvim]:
220222
https://github.com/gorbit99/codewindow.nvim
221223

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)