Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highligted words in visual mode are invisible in neovim #347

Open
jonassvedas opened this issue Aug 28, 2023 · 4 comments
Open

Highligted words in visual mode are invisible in neovim #347

jonassvedas opened this issue Aug 28, 2023 · 4 comments

Comments

@jonassvedas
Copy link

image

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

@hoelter
Copy link

hoelter commented Sep 2, 2023

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

@jonassvedas
Copy link
Author

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

@hoelter
Copy link

hoelter commented Sep 5, 2023

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

@bickman
Copy link

bickman commented May 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants