From 22d3a9375b8c7b2e9ea62b05543a96076d5fd6f2 Mon Sep 17 00:00:00 2001 From: vollowx Date: Sat, 26 Oct 2024 16:21:39 +0800 Subject: [PATCH] fix(kitty): respect `transparent_background` option --- lua/catppuccin/palettes/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/catppuccin/palettes/init.lua b/lua/catppuccin/palettes/init.lua index 68030c45..d022f9fb 100644 --- a/lua/catppuccin/palettes/init.lua +++ b/lua/catppuccin/palettes/init.lua @@ -5,7 +5,7 @@ function M.get_palette(flavour) local _, palette = pcall(require, "catppuccin.palettes." .. flvr) local O = require("catppuccin").options local ans = vim.tbl_deep_extend("keep", O.color_overrides.all or {}, O.color_overrides[flvr] or {}, palette or {}) - if O.kitty then -- https://github.com/kovidgoyal/kitty/issues/2917 + if O.kitty and O.transparent_background then -- https://github.com/kovidgoyal/kitty/issues/2917 for accent, hex in pairs(ans) do local red_green_string = hex:sub(1, 5) local blue_value = tonumber(hex:sub(6, 7), 16)