dotfiles/_cli/zsh/fzf.zsh

13 lines
572 B
Bash

if [[ $(command -v fzf) ]]; then
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.local/config/fd'
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.local/config/fd'
export FZF_DEFAULT_OPTS="--multi -e --ansi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=Monokai\ Extended\ Bright {}'"
export FZF_CTRL_R_OPTS="-e --ansi --layout=reverse --preview=''"
_fzf_compgen_path() {
fd -H -L --ignore-file ~/.local/config/fd . "$1"
}
_fzf_compgen_dir() {
fd -H -L --ignore-file ~/.local/config/fd --type d . "$1"
}
fi