Skip to content

Commit c142447

Browse files
committed
fix: resolve reversed highlight groups upon resolution
1 parent b4585ce commit c142447

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/astroui/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ function M.get_hlgroup(name, fallback)
4848
local hl = vim.api.nvim_get_hl(0, { name = name, link = false })
4949
if not hl.fg then hl.fg = "NONE" end
5050
if not hl.bg then hl.bg = "NONE" end
51+
if hl.reverse then
52+
hl.fg, hl.bg, hl.reverse = hl.bg, hl.fg, nil
53+
end
5154
return hl
5255
end
5356
return fallback or {}

0 commit comments

Comments
 (0)