From c874b7fa99c2c5326ac2de50e540c1993af9a85b Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 19 Apr 2023 00:54:44 +0300 Subject: [PATCH] fix: catppuccin not inheriting transparency --- extra.nix | 1 + modules/theme/supported_themes.nix | 2 +- modules/theme/theme.nix | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) 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; + }); }; }