Fix select-word-style by postponing the load of zsh-syntax-highlighting until after the shell is initialised

This commit is contained in:
Danielle McLean 2018-01-18 16:17:37 +11:00
parent a2d253384a
commit 2d210a3c8d
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
3 changed files with 2 additions and 4 deletions

View file

@ -1,4 +1,5 @@
#! zsh #! zsh
_zsh_highlight() {}
zle-line-init() {} zle-line-init() {}
zle -N zle-line-init zle -N zle-line-init

View file

@ -22,7 +22,6 @@ zmodload zsh/complist # so that listscroll is defined
zstyle :completion:* menu select zstyle :completion:* menu select
zstyle :completion:* list-prompt ' ' zstyle :completion:* list-prompt ' '
zstyle :completion:* select-prompt ' %F{blue}-- %m --%f' zstyle :completion:* select-prompt ' %F{blue}-- %m --%f'
bindkey -M listscroll '^I' 'send-break; self-insert'
# Permit expensive completions to cache info and therefore be usable. # Permit expensive completions to cache info and therefore be usable.
zstyle :completion::complete:* use-cache on zstyle :completion::complete:* use-cache on

View file

@ -29,6 +29,4 @@ if [[ ! $LS_COLORS_DIR/LS_COLORS.plugin.zsh -nt $LS_COLORS_DIR/LS_COLORS ]]; the
fi fi
zplugin $load zsh-users/zsh-completions zplugin $load zsh-users/zsh-completions
zplugin $load zsh-users/zsh-syntax-highlighting zplugin ice silent wait!1; zplugin $load zsh-users/zsh-syntax-highlighting
zplugin $load zsh-users/zsh-history-substring-search
zplugin $load sharat87/zsh-vim-mode