Настройка дополнения

This commit is contained in:
Andrei Astafev 2022-12-18 05:13:48 +03:00
parent 19280ec6fc
commit 5773b855f3
5 changed files with 22 additions and 14 deletions

5
.zshrc
View File

@ -5,12 +5,13 @@ for S in \
05-start \
15-options \
25-history \
41-zinit \
42-zinit \
45-plugins \
55-agents \
65-scripts \
75-aliases \
85-completion \
82-completion \
85-keybindings \
88-prompt \
95-finish
do

View File

@ -33,7 +33,6 @@ zinit light joshskidmore/zsh-fzf-history-search
if command -v git > /dev/null 2>&1; then
GIT_AUTO_FETCH_INTERVAL=3600
zinit snippet OMZP::git
zinit snippet OMZP::gitfast
zinit snippet OMZP::git-extras
zinit snippet OMZP::github
[ -z ${SSH_CONNECTION+set} ] && zinit snippet OMZP::git-auto-fetch

View File

@ -23,15 +23,18 @@ zstyle ':completion:*:(ssh|scp|rsync):*:hosts-host' ignored-patterns '*.*' loo
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^*.*' '*@*'
zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^<->.<->.<->.<->' '127.0.0.<->'
if is-at-least 5.7; then
zstyle ':autocomplete:*' min-input 2
zstyle ':autocomplete:*' fzf-completion yes
zinit light marlonrichert/zsh-autocomplete
else
zinit wait lucid light-mode for \
atinit"zicompinit; zicdreplay" zdharma-continuum/fast-syntax-highlighting \
atload"_zsh_autosuggest_start" zsh-users/zsh-autosuggestions \
blockf atpull'zinit creinstall -q .' zsh-users/zsh-completions
zinit load zsh-users/zsh-history-substring-search
fi
# marlonrichert/zsh-autocomplete
zinit wait lucid for \
atinit"ZINIT[COMPINIT_OPTS]=-C; zicompinit; zicdreplay" \
zdharma-continuum/fast-syntax-highlighting \
blockf \
zsh-users/zsh-completions \
atload"!_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions
zstyle ":history-search-multi-word" page-size "$(($LINES/2))"
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
zinit load zdharma-continuum/history-search-multi-word
bindkey "^K" history-search-multi-word

5
85-keybindings.zsh Normal file
View File

@ -0,0 +1,5 @@
# Defined shortcut keys: [Esc] [Esc]
bindkey -M emacs '\e\e' send-break
bindkey -M vicmd '\e\e' send-break
bindkey -M viins '\e\e' send-break