-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
Sometimes it is not highlighted when searching #1197
Comments
The highlighting you see in the second image is the result of |
oh , thanks ! |
You want it for all commands, or only for To apply it globally, add some # See "man fzf" for more options
export FZF_DEFAULT_OPTS='--color hl:underline:reverse,hl+:underline:reverse' You can do this in your Vim configuration file let $FZF_DEFAULT_OPTS = '--color hl:underline:reverse,hl+:underline:reverse' A few caveats:
To apply the color settings to an individual command, you have to redefine each command using their functions (https://github.com/junegunn/fzf.vim#vim-functions). For example, command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview({'options': '--color hl:underline:reverse,hl+:underline:reverse'}), <bang>0) This gives you the maximum flexibility but it can be quite tedious. |
So you can override the colors and still have the text attributes # Default colors and attributes fzf export FZF_DEFAULT_OPTS='--color hl:-1:underline,hl+:-1:underline:reverse' # Default colors with underline+reverse attributes fzf # Different colors with underline+reverse attributes fzf --color hl:176,hl+:177 Related: junegunn/fzf.vim#1197 (comment)
So you can override the colors and still have the text attributes # Default colors and attributes fzf export FZF_DEFAULT_OPTS='--color hl:-1:underline,hl+:-1:underline:reverse' # Default colors with underline+reverse attributes fzf # Different colors with underline+reverse attributes fzf --color hl:176,hl+:177 Related: junegunn/fzf.vim#1197 (comment)
search without highlight example
![image](https://user-images.githubusercontent.com/66858140/101132225-97a6d780-3641-11eb-9e56-7e5c433d6347.png)
search with highlight example
![image](https://user-images.githubusercontent.com/66858140/101132239-9ecde580-3641-11eb-8ab3-7b3cef7cae2c.png)
man fzf
)The text was updated successfully, but these errors were encountered: