diff --git a/lua/astrocommunity/color/transparent-nvim/init.lua b/lua/astrocommunity/color/transparent-nvim/init.lua index a854092e6..56ef2fc13 100644 --- a/lua/astrocommunity/color/transparent-nvim/init.lua +++ b/lua/astrocommunity/color/transparent-nvim/init.lua @@ -16,7 +16,18 @@ return { dependencies = { { "AstroNvim/astrocore", + ---@type AstroCoreOpts opts = { + autocmds = { + transparent_astrocolorscheme = { + { + event = "User", + pattern = "AstroColorScheme", + desc = "Reclear highlight groups after AstroNvim colorscheme options", + callback = function() require("transparent").clear() end, + }, + }, + }, mappings = { n = { ["uT"] = { "TransparentToggle", desc = "Toggle transparency" },