[zsh] use fzy for completion

This commit is contained in:
odrling 2024-04-12 19:35:17 +02:00
parent 2e746a35b2
commit 7483c19218
No known key found for this signature in database
GPG key ID: EC907F69A27A90C5
3 changed files with 10 additions and 4 deletions

3
.gitmodules vendored
View file

@ -47,3 +47,6 @@
[submodule ".config/mpv/submodules/mfcc64-scripts"]
path = .config/mpv/submodules/mfcc64-scripts
url = https://github.com/mfcc64/mpv-scripts.git
[submodule ".zsh/zsh-fzy"]
path = .zsh/zsh-fzy
url = https://github.com/aperezdc/zsh-fzy.git

1
.zsh/zsh-fzy Submodule

@ -0,0 +1 @@
Subproject commit 519327d9990fbea50f71649e378e650f594bb39b

10
.zshrc
View file

@ -12,10 +12,12 @@ source ~/.zsh/zsh-completions/zsh-completions.plugin.zsh
ZVM_INIT_MODE=sourcing
[ -z "$NVIM" ] && source ~/.zsh/zsh-vi-mode/zsh-vi-mode.plugin.zsh
if command -v fzf >/dev/null; then
source ~/.bash/fzf/shell/completion.zsh
source ~/.bash/fzf/shell/key-bindings.zsh
source ~/.bash/fzf-tab-completion/zsh/fzf-zsh-completion.sh
if command -v fzy >/dev/null; then
source ~/.zsh/zsh-fzy/zsh-fzy.plugin.zsh
bindkey '\ec' fzy-cd-widget
bindkey '^T' fzy-file-widget
bindkey '^R' fzy-history-widget
bindkey '^P' fzy-proc-widget
fi
source ~/.zsh/envs.zsh