fix: catppuccin not inheriting transparency

This commit is contained in:
NotAShelf 2023-04-19 00:54:44 +03:00
parent c749a7fe59
commit c874b7fa99
No known key found for this signature in database
GPG Key ID: F0D14CCB5ED5AA22
3 changed files with 5 additions and 2 deletions

View File

@ -91,6 +91,7 @@ inputs: let
enable = true;
name = "catppuccin";
style = "mocha";
transparent = false;
};
vim.autopairs.enable = true;

View File

@ -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,

View File

@ -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;
});
};
}