DiffText become invisible in dark background
jerryyin opened this issue · comments
I have done the following steps before reporting this issue:
- I have searched the existing issues
- I have read the FAQ in the help doc
$TERM environment variable
screen-256color
Feature matrix
vim 9
Minimal vimrc that can reproduce this bug.
set background=dark
let g:gruvbox_material_background='hard'
Steps to reproduce this bug using minimal vimrc
Change some text and launch diff window
Expected behavior
diff text should be visible
gruvbox-material/colors/gruvbox-material.vim
Line 119 in 3fff63b
Should be:
call gruvbox_material#highlight('DiffText', s:palette.none, s:palette.blue)
The bg0 makes the diff text to be invisible
Actual behavior
Hard to see diff text, as in:
When cursor is on the line with DiffText
, it becomes almost invisible. I'm only able to see the text section when cursor isn't overlapping with the line.
@jerryyin thanks for reporting, I'll link into this today.
@antoineco Thanks for taking a look. I get the following with verbose hi DiffText
:
DiffText xxx term=reverse ctermfg=234 ctermbg=109 guifg=#1d2021 guibg=#7daea3
Last set from ~/.vim/plugged/gruvbox-material/autoload/gruvbox_material.vim line 285
Please note that it becomes invisible only if my cursor overlaps with the diff line. If the cursorline is different, then diff text is as visible as your screen-clip.
@jerryyin sorry for the very delayed answer. To me it seems like you have some plugin installed which automatically highlights the word under the cursor. If you tell us what plugins you are using we can maybe help, and support that plugin better.
Closing due to inactivity. Feel free to reopen.