vim icon indicating copy to clipboard operation
vim copied to clipboard

Highligted words in visual mode are invisible in neovim

Open jonassvedas opened this issue 2 years ago • 4 comments

image

I am running WSL2 + windows terminal + nvim v0.9.1 and the following plugins. image

jonassvedas avatar Aug 28 '23 18:08 jonassvedas

It appears there may be direct way to target this state, but there is a workaround to set the "Search" higlight group to reverse, and flip the fg/bg. This means that the search higlight will persist and appear the same even when selected in visual mode.

Fix would look like this: image

hoelter avatar Sep 02 '23 19:09 hoelter

image Setting the configuration for nord theme to the above did not change anything for me. Was this the intended fix?

jonassvedas avatar Sep 05 '23 21:09 jonassvedas

Apologies for the confusion, the screenshot was only inteded to show that with the described fix, the highlighting persists even when the line is selected in visual mode.

The fix should be done to the nord plugin itself, but you can override the highlight group in your own config in the meantime. Somewhere after the line where you declare the color as nord, put this to modify the "Search" higlight group: hi! Search guifg=#88C0D0 guibg=#3B4252 ctermfg=6 ctermbg=0 gui=reverse term=reverse

hoelter avatar Sep 05 '23 22:09 hoelter

2024-05-12-001731 change nord.vim hi("Visual", "",s:nord2_gui,"", s:nord1_term,"","") to hi("Visual", "NONE",s:nord2_gui,"NONE", s:nord1_term,"","") work for me.

bickman avatar May 11 '24 16:05 bickman