[bugfix] fzf options wasn't picked up by fzf.vim

This commit is contained in:
Klesh Wong 2020-12-21 17:17:20 +08:00
parent 6f14fe2bec
commit e790a831fd

View File

@ -5,11 +5,11 @@ if status is-interactive
set -gx EDITOR v
# === fzf configuration
set -U FZF_DEFAULT_COMMAND 'ag -g ""'
set -U FZF_COMPLETE 0
set -U FZF_FIND_FILE_COMMAND 'ag -g ""'
set -U FZF_OPEN_COMMAND 'ag -g ""'
set -U FZF_DEFAULT_OPTS '--height 40% --preview "bat --style=numbers --color=always --line-range :500 {}"'
set -gx FZF_DEFAULT_COMMAND 'ag -g ""'
set -gx FZF_COMPLETE 0
set -gx FZF_FIND_FILE_COMMAND 'ag -g ""'
set -gx FZF_OPEN_COMMAND 'ag -g ""'
set -gx FZF_DEFAULT_OPTS '--height 40% --preview "bat --style=numbers --color=always --line-range :500 {}"'
# === less configuration
# no line-wrapping, good for `docker ps`