Abstract-cs icon indicating copy to clipboard operation
Abstract-cs copied to clipboard

Better highlight on hilighted search in visual mode?

Open tmpm697 opened this issue 2 years ago • 5 comments

highlighted statement (the 2nd one) in selecting block give it color that hard to see, as below image: screenshot-latest

tmpm697 avatar May 08 '23 09:05 tmpm697

i just tried it by changing to different colors. it's very hard to find the good color for search highlight based on current theme.

AlixShahid avatar May 08 '23 10:05 AlixShahid

why don't just keep color like the 1st one? you don't need to change it at all. i don't see the case for changing it.

tmpm697 avatar May 08 '23 15:05 tmpm697

when you're in visual mode and cursor is in highlighted text, text's foreground colors adopts the search highlight's foreground color. in this case, background is orange and foreground color is black. that's why you're seeing black color in your screenshot.

AlixShahid avatar May 08 '23 18:05 AlixShahid

so, there's must be a highlighted_candidate_in_visual_mode to fix this. does nvim/vim expose this kind of highlight?

tmpm697 avatar May 09 '23 04:05 tmpm697

"It has been a long time since I looked at Neovim's highlight documentation. I have been busy these days, but I will look it up when I have free time."

AlixShahid avatar May 09 '23 06:05 AlixShahid