This commit is contained in:
Snoweuph 2025-12-25 01:52:49 +08:00 committed by GitHub
commit 8a0bea2579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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;}}