mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 11:01:31 +01:00
zsh: add support for fzf's --highlight line option (fzf>=0.52.0)
This commit is contained in:
parent
e021c813b2
commit
3bb339ad36
|
@ -66,6 +66,10 @@ else
|
||||||
export FZF_CTRL_T_COMMAND='find'
|
export FZF_CTRL_T_COMMAND='find'
|
||||||
fi
|
fi
|
||||||
export FZF_CTRL_T_OPTS=" --preview-window=right,60% --preview \"bash -c 'if [[ -d \"{}\" ]]; then tree -C \"{}\"; else bat --style=plain --color=always \"{}\"; fi'\" --bind 'ctrl-/:change-preview-window(right,70%|down,40%,border-horizontal|hidden|right)'"
|
export FZF_CTRL_T_OPTS=" --preview-window=right,60% --preview \"bash -c 'if [[ -d \"{}\" ]]; then tree -C \"{}\"; else bat --style=plain --color=always \"{}\"; fi'\" --bind 'ctrl-/:change-preview-window(right,70%|down,40%,border-horizontal|hidden|right)'"
|
||||||
|
if [[ $(fzf --version | cut -d. -f 2) -ge 52 ]]; then
|
||||||
|
# only available for fzf 0.52.0+ https://github.com/junegunn/fzf/releases/tag/0.52.0
|
||||||
|
export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --highlight-line"
|
||||||
|
fi
|
||||||
|
|
||||||
ZSH_HIGHLIGHT_STYLES[comment]='fg=white,bg=gray,bold'
|
ZSH_HIGHLIGHT_STYLES[comment]='fg=white,bg=gray,bold'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user