documentation: document how to set fzf preview colors

Co-Authored-by: iGor milhit <igor@milhit.ch>
main
iGor milhit 2021-06-03 17:44:13 +02:00
parent 1b605a3c81
commit 386f36380b
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 13 additions and 0 deletions

View File

@ -49,6 +49,19 @@ nvim
:PlugInstall :PlugInstall
``` ```
## External configuration
In order to improve the `fzf` preview window display, it's possible to
configure it through the following `env` variable:
```bash
export FZF_DEFAULT_OPTS="--preview='bat --style=numbers --color=always --line-range :500 {}' \
--border \
--color 'border:#4c566a,info:#4c566a,pointer:#88c0d0,prompt:#5e81ac,bg+:#3b4252,hl:#a3be8c'"
```
See the `fzf` documentation: <https://github.com/junegunn/fzf#preview-window>
[1]: https://github.com/junegunn/vim-plug [1]: https://github.com/junegunn/vim-plug
[2]: https://github.com/BurntSushi/ripgrep [2]: https://github.com/BurntSushi/ripgrep
[3]: https://github.com/ggreer/the_silver_searcher [3]: https://github.com/ggreer/the_silver_searcher