DiffAdd and DiffRemoved randomly cannot be overridden
hanschen opened this issue · 1 comments
hanschen commented
Describe the bug
When I try to override DiffAdded
and DiffRemoved
using overrides
, it sometimes works, but sometimes they remain linked to DiffAdd
and DiffDelete
.
I tried to debug this using a clean config and guess that it could be caused by the following lines:
Lines 1017 to 1018 in 0940564
because when I use diffAdded
/diffRemoved
in overrides
instead, it seems to work as expected.
To Reproduce
Steps to reproduce the behavior:
- Load the plugin using
require("gruvbox").setup({
overrides = {
DiffRemoved = { fg = "#ff0000" },
},
})
vim.cmd("colorscheme gruvbox")
- Open
nvim
. - Check
:highlight DiffRemoved
. - Sometimes it say
DiffRemoved xxx links to DiffDelete
.
Expected behavior
The override should always be applied.
hanschen commented
I just saw that diffAdded
etc. should always start with a lowercase letter, so I guess this was a user error. Closing.