diff --git a/extra.nix b/extra.nix index c8e625b..fa1f4d9 100644 --- a/extra.nix +++ b/extra.nix @@ -91,6 +91,7 @@ inputs: let enable = true; name = "catppuccin"; style = "mocha"; + transparent = false; }; vim.autopairs.enable = true; diff --git a/modules/theme/supported_themes.nix b/modules/theme/supported_themes.nix index d787f82..d2a20dc 100644 --- a/modules/theme/supported_themes.nix +++ b/modules/theme/supported_themes.nix @@ -32,7 +32,7 @@ -- Catppuccin theme require('catppuccin').setup { flavour = "${style}", - transparent_background = "${builtins.toString transparent}", + transparent_background = ${lib.boolToString transparent}, integrations = { nvimtree = { enabled = true, diff --git a/modules/theme/theme.nix b/modules/theme/theme.nix index 06a5dd5..6dcb66d 100644 --- a/modules/theme/theme.nix +++ b/modules/theme/theme.nix @@ -40,6 +40,8 @@ in { config = mkIf cfg.enable { vim.startPlugins = [cfg.name]; vim.luaConfigRC.themeSetup = nvim.dag.entryBefore ["theme"] cfg.extraConfig; - vim.luaConfigRC.theme = supported_themes.${cfg.name}.setup {style = cfg.style;}; + vim.luaConfigRC.theme = supported_themes.${cfg.name}.setup (with cfg; { + inherit style transparent; + }); }; }