Skip to content

Commit c874b7f

Browse files
committed
fix: catppuccin not inheriting transparency
1 parent c749a7f commit c874b7f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

extra.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ inputs: let
9191
enable = true;
9292
name = "catppuccin";
9393
style = "mocha";
94+
transparent = false;
9495
};
9596
vim.autopairs.enable = true;
9697

modules/theme/supported_themes.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
-- Catppuccin theme
3333
require('catppuccin').setup {
3434
flavour = "${style}",
35-
transparent_background = "${builtins.toString transparent}",
35+
transparent_background = ${lib.boolToString transparent},
3636
integrations = {
3737
nvimtree = {
3838
enabled = true,

modules/theme/theme.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ in {
4040
config = mkIf cfg.enable {
4141
vim.startPlugins = [cfg.name];
4242
vim.luaConfigRC.themeSetup = nvim.dag.entryBefore ["theme"] cfg.extraConfig;
43-
vim.luaConfigRC.theme = supported_themes.${cfg.name}.setup {style = cfg.style;};
43+
vim.luaConfigRC.theme = supported_themes.${cfg.name}.setup (with cfg; {
44+
inherit style transparent;
45+
});
4446
};
4547
}

0 commit comments

Comments
 (0)