We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 800a366 + 080aaf4 commit feb1a23Copy full SHA for feb1a23
lua/neogit/lib/hl.lua
@@ -32,7 +32,7 @@ local function get_fg(name)
32
local color = vim.api.nvim_get_hl(0, { name = name })
33
if color["link"] then
34
return get_fg(color["link"])
35
- elseif color["reverse"] then
+ elseif color["reverse"] and color["bg"] then
36
return "#" .. to_hex(color["bg"])
37
elseif color["fg"] then
38
return "#" .. to_hex(color["fg"])
@@ -44,7 +44,7 @@ local function get_bg(name)
44
45
46
return get_bg(color["link"])
47
+ elseif color["reverse"] and color["fg"] then
48
49
elseif color["bg"] then
50
0 commit comments