zsh autocompletions plugin

This commit is contained in:
thek4n 2024-12-12 15:27:34 +03:00
parent 37e9ac2814
commit 3775a9b8ec
2 changed files with 6 additions and 18 deletions

View File

@ -35,23 +35,9 @@ zstyle ':completion:*:cd:*' ignore-parents parent pwd
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
zstyle ':autocomplete:*' min-input 3
zstyle ':autocomplete:*' delay 0.1
compdef _directories _d
compdef _files _f
compdef _directories mcd
bindkey -M menuselect '^h' vi-backward-char
bindkey -M menuselect '^k' vi-up-line-or-history
bindkey -M menuselect '^j' vi-down-line-or-history
bindkey -M menuselect '^l' vi-forward-char
bindkey -M menuselect '^e' undo
bindkey -M menuselect '^[' cancel
bindkey -M menuselect '^I' accept-and-infer-next-history
bindkey -M menuselect '^M' check-command
setopt list_packed
setopt always_to_end
setopt auto_param_slash
setopt autolist
unsetopt menu_complete
compdef _directories mcd

View File

@ -13,8 +13,10 @@ install_if_not_exists zsh-users/zsh-autosuggestions
install_if_not_exists zsh-users/zsh-syntax-highlighting
install_if_not_exists hlissner/zsh-autopair
install_if_not_exists unixorn/fzf-zsh-plugin
install_if_not_exists marlonrichert/zsh-autocomplete
_so ~/.config/zsh/plugins/zsh-users/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
_so ~/.config/zsh/plugins/zsh-users/zsh-autosuggestions/zsh-autosuggestions.zsh
_so ~/.config/zsh/plugins/hlissner/zsh-autopair/autopair.zsh
_so ~/.config/zsh/plugins/unixorn/fzf-zsh-plugin/fzf-zsh-plugin.plugin.zsh
_so ~/.config/zsh/plugins/unixorn/fzf-zsh-plugin/fzf-zsh-plugin.plugin.zsh
_so ~/.config/zsh/plugins/marlonrichert/zsh-autocomplete/zsh-autocomplete.plugin.zsh