Open jonassvedas opened 1 year ago
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:
Setting the configuration for nord theme to the above did not change anything for me. Was this the intended fix?
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
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.
I am running WSL2 + windows terminal + nvim v0.9.1 and the following plugins.