Проба оптимизации автодополнения

This commit is contained in:
Andrei Astafev 2022-12-21 13:40:59 +03:00
parent a545d3be52
commit c7b2bbb92f

View File

@ -37,16 +37,16 @@ zinit wait'0' lucid light-mode depth'1' for \
atload"!_zsh_autosuggest_start" \ atload"!_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions zsh-users/zsh-autosuggestions
if [[ -n ${ZSH_MC_SUBSHELL+set} ]] && [[ -n ${SSH_CONNECTION+set} ]]; then zinit wait'1' lucid light-mode depth'1' for \
zinit light zsh-users/zsh-history-substring-search
else
zstyle ":history-search-multi-word" page-size "$((LINES/2))"
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
zinit wait'0' lucid light-mode depth'1' for \
zdharma-continuum/history-search-multi-word \
atload"bindkey '^[[A' history-substring-search-up; \ atload"bindkey '^[[A' history-substring-search-up; \
bindkey '^[[B' history-substring-search-down; \ bindkey '^[[B' history-substring-search-down" \
bindkey '^K' history-search-multi-word " \
zsh-users/zsh-history-substring-search zsh-users/zsh-history-substring-search
zstyle ':history-search-multi-word' page-size "$((LINES/2))"
zstyle ':plugin:history-search-multi-word' clear-on-cancel 'yes'
if [[ -z ${ZSH_HISTORY_SEARCH_MULTI_WORD_MODE+set} ]]; then
zinit wait'1' lucid light-mode depth'1' for \
atload"bindkey '^K' history-search-multi-word" \
zdharma-continuum/history-search-multi-word
fi fi