Skip to content

Commit 5c6e001

Browse files
Copilotellisonleao
andcommitted
Fix NeoTree diagnostic signs background by adding NeoTreeSignColumn config
Co-authored-by: ellisonleao <[email protected]>
1 parent 5c4eab3 commit 5c6e001

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

lua/gruvbox.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,7 @@ local function get_groups()
11311131
NeoTreeTitleBar = { fg = colors.fg1, bg = colors.bg2 },
11321132
NeoTreeDirectoryIcon = { link = "GruvboxGreen" },
11331133
NeoTreeDirectoryName = { link = "GruvboxGreenBold" },
1134+
NeoTreeSignColumn = { bg = "NONE" },
11341135
["@comment"] = { link = "Comment" },
11351136
["@none"] = { bg = "NONE", fg = "NONE" },
11361137
["@preproc"] = { link = "PreProc" },

tests/gruvbox/gruvbox_spec.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,19 @@ describe("tests", function()
186186
assert.are.same(gruvbox.config.contrast, "")
187187
assert.is_nil(gruvbox.config.overrides.Normal)
188188
end)
189+
190+
it("should set NeoTreeSignColumn background to NONE", function()
191+
gruvbox.setup()
192+
gruvbox.load()
193+
194+
local group_id = vim.api.nvim_get_hl_id_by_name("NeoTreeSignColumn")
195+
local values = {
196+
bg = vim.fn.synIDattr(group_id, "bg", "gui"),
197+
}
198+
199+
local expected = {
200+
bg = "", -- "NONE" translates to empty string in synIDattr
201+
}
202+
assert.are.same(expected, values)
203+
end)
189204
end)

0 commit comments

Comments
 (0)