From 7e9f0dcb40fe1ac3b36155de97871ad4df05a526 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Sun, 14 Dec 2025 11:35:21 +0100 Subject: [PATCH] theme/habamax: add neovim builtin theme habamax --- modules/plugins/theme/supported-themes.nix | 8 ++++++++ modules/plugins/theme/theme.nix | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/plugins/theme/supported-themes.nix b/modules/plugins/theme/supported-themes.nix index c2a5e1ca..1a1f5509 100644 --- a/modules/plugins/theme/supported-themes.nix +++ b/modules/plugins/theme/supported-themes.nix @@ -8,6 +8,14 @@ inherit (lib.trivial) boolToString warnIf; inherit (lib.nvim.lua) toLuaObject; in { + habamax = { + builtin = true; + setup = _: + /* + lua + */ + "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;}}