[fish] re-configure fzf and add nvim binding
This commit is contained in:
parent
6fc6fa1786
commit
77b08ca293
|
@ -20,13 +20,6 @@ if test -d ~/.cargo/bin
|
|||
set PATH "$HOME/.cargo/bin" $PATH
|
||||
end
|
||||
|
||||
# customize fzf to hide preview and make it toggle
|
||||
set -gx FZF_DEFAULT_OPTS "
|
||||
--preview-window=:hidden
|
||||
--preview='__fzf_preview {}'
|
||||
--bind '?:toggle-preview'
|
||||
"
|
||||
|
||||
# load up asdf completions
|
||||
if test -f ~/.asdf/asdf.fish
|
||||
source ~/.asdf/asdf.fish
|
||||
|
@ -37,3 +30,21 @@ if test -f ~/dev/google-cloud-sdk/path.fish.inc
|
|||
set PATH "$HOME/dev/google-cloud-sdk/bin" $PATH
|
||||
source ~/dev/google-cloud-sdk/path.fish.inc
|
||||
end
|
||||
|
||||
if type -q fzf
|
||||
set -gx FZF_DEFAULT_OPTS "
|
||||
--preview-window=:hidden
|
||||
--preview='__fzf_preview {}'
|
||||
--layout=reverse
|
||||
--height=80%
|
||||
--border
|
||||
--margin=1
|
||||
--padding=1
|
||||
--info=inline
|
||||
--bind='ctrl-h:toggle-preview'
|
||||
"
|
||||
if type -q fzf_configure_bindings
|
||||
set fzf_directory_opts --bind "ctrl-o:execute($EDITOR {} &> /dev/tty)"
|
||||
fzf_configure_bindings --directory=\cf --git_status=\cg
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue