From 8f1002844939f311c50fde88919a0f1f83ec6a8e Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Mon, 7 Oct 2024 23:03:59 +0200 Subject: [PATCH] oxocarbon and gruvbox borked --- modules/plugins/theme/supported-themes.nix | 6 +++--- modules/plugins/theme/theme.nix | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/plugins/theme/supported-themes.nix b/modules/plugins/theme/supported-themes.nix index 2e2dbce..03549c6 100644 --- a/modules/plugins/theme/supported-themes.nix +++ b/modules/plugins/theme/supported-themes.nix @@ -128,7 +128,7 @@ in { }; oxocarbon = { - setupOpts = mkPluginSetupOption "oxocarbon" {}; + setupOpts = {}; setup = '' require('oxocarbon') vim.opt.background = "${cfg.style}" @@ -177,8 +177,8 @@ in { default = ""; }; # TODO: fix these - palette_overrides = mkLuaInline "{}"; - overrides = mkLuaInline "{}"; + # palette_overrides = mkLuaInline "{}"; + # overrides = mkLuaInline "{}"; dim_inactive = mkEnableOption "dim_inactive"; }; setup = '' diff --git a/modules/plugins/theme/theme.nix b/modules/plugins/theme/theme.nix index 373d20d..e1bc471 100644 --- a/modules/plugins/theme/theme.nix +++ b/modules/plugins/theme/theme.nix @@ -60,7 +60,11 @@ in { luaConfigRC.theme = entryBefore ["pluginConfigs"] '' ${cfg.extraConfig} - require('${name'}').setup(${toLuaObject cfg.setupOpts}) + ${ + if name' != "oxocarbon" + then "require('${name'}').setup(${toLuaObject cfg.setupOpts})" + else "" + } ${supportedThemes.${cfg.name}.setup} '';