oxocarbon and gruvbox borked

This commit is contained in:
Charlie Root 2024-10-07 23:03:59 +02:00
parent 2c3350eb15
commit 8f10028449
No known key found for this signature in database
2 changed files with 8 additions and 4 deletions

View file

@ -128,7 +128,7 @@ in {
}; };
oxocarbon = { oxocarbon = {
setupOpts = mkPluginSetupOption "oxocarbon" {}; setupOpts = {};
setup = '' setup = ''
require('oxocarbon') require('oxocarbon')
vim.opt.background = "${cfg.style}" vim.opt.background = "${cfg.style}"
@ -177,8 +177,8 @@ in {
default = ""; default = "";
}; };
# TODO: fix these # TODO: fix these
palette_overrides = mkLuaInline "{}"; # palette_overrides = mkLuaInline "{}";
overrides = mkLuaInline "{}"; # overrides = mkLuaInline "{}";
dim_inactive = mkEnableOption "dim_inactive"; dim_inactive = mkEnableOption "dim_inactive";
}; };
setup = '' setup = ''

View file

@ -60,7 +60,11 @@ in {
luaConfigRC.theme = entryBefore ["pluginConfigs"] '' luaConfigRC.theme = entryBefore ["pluginConfigs"] ''
${cfg.extraConfig} ${cfg.extraConfig}
require('${name'}').setup(${toLuaObject cfg.setupOpts}) ${
if name' != "oxocarbon"
then "require('${name'}').setup(${toLuaObject cfg.setupOpts})"
else ""
}
${supportedThemes.${cfg.name}.setup} ${supportedThemes.${cfg.name}.setup}
''; '';