[zsh] use fzy for completion
This commit is contained in:
parent
2e746a35b2
commit
7483c19218
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
1
.zsh/zsh-fzy
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 519327d9990fbea50f71649e378e650f594bb39b
|
10
.zshrc
10
.zshrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue