How to change the grep match highlight colors of the preview window? #1751
-
I have been trying to figure out which highlight group is associated with the match on the preview window during the grep search but I can't seem to figure this one out. As I was debugging this to narrow down which group it was, I realized that the specific group doesn't even get returned by the command 'highlight' (If it did, then the color should have changed to a red background with a blue foreground which wasn't the case as we can see in the video). What am I missing? output4.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Your video wasn't uploaded so it's hard for me to tell what you're talking about. In general preview highlights for grep (if not "native") are controlled by |
Beta Was this translation helpful? Give feedback.
Ohhh I okay, I think I got it.
So I added the
winopts
option to my config like I show below and its now working like you described; I can now control the background of the cursor line in the preview window using theFzfLuaCursorLine
highlight group. Thank you very much.