fix: use plain background for gitsigns highlights

Problem: gitsigns groups were linked to DiffAdd/DiffChange/DiffDelete,
which have tinted backgrounds that look out of place in the sign column.

Solution: define GitSignsAdd, GitSignsChange, and GitSignsDelete with
foreground-only highlights so they inherit the normal background.
This commit is contained in:
Barrett Ruth 2026-02-18 11:21:58 -05:00
parent fc03b940de
commit 638a9e65f3
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

View file

@ -168,9 +168,9 @@ function M.apply()
hi('@function.latex', { fg = cs.blue })
hi('GitSignsCurrentLineBlame', { italic = true, fg = cs.light_black })
link('DiffAdd', 'GitSignsAdd')
link('DiffChange', 'GitSignsChange')
link('DiffDelete', 'GitSignsDelete')
hi('GitSignsAdd', { fg = cs.green })
hi('GitSignsChange', { fg = cs.blue })
hi('GitSignsDelete', { fg = cs.red })
link('Search', 'HighlightUndo')