From 2d210a3c8d4712f25405fe7e3d32fbf739e1c207 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 18 Jan 2018 16:17:37 +1100 Subject: [PATCH] Fix select-word-style by postponing the load of zsh-syntax-highlighting until after the shell is initialised --- config/zsh/interactive/bindings | 1 + config/zsh/interactive/completion | 1 - config/zsh/zplugin | 4 +--- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/zsh/interactive/bindings b/config/zsh/interactive/bindings index c6c7af4..568f766 100644 --- a/config/zsh/interactive/bindings +++ b/config/zsh/interactive/bindings @@ -1,4 +1,5 @@ #! zsh +_zsh_highlight() {} zle-line-init() {} zle -N zle-line-init diff --git a/config/zsh/interactive/completion b/config/zsh/interactive/completion index f480dd9..c40a103 100644 --- a/config/zsh/interactive/completion +++ b/config/zsh/interactive/completion @@ -22,7 +22,6 @@ zmodload zsh/complist # so that listscroll is defined zstyle :completion:* menu select zstyle :completion:* list-prompt ' ' 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. zstyle :completion::complete:* use-cache on diff --git a/config/zsh/zplugin b/config/zsh/zplugin index 894f3e2..f72b11b 100644 --- a/config/zsh/zplugin +++ b/config/zsh/zplugin @@ -29,6 +29,4 @@ if [[ ! $LS_COLORS_DIR/LS_COLORS.plugin.zsh -nt $LS_COLORS_DIR/LS_COLORS ]]; the fi zplugin $load zsh-users/zsh-completions -zplugin $load zsh-users/zsh-syntax-highlighting -zplugin $load zsh-users/zsh-history-substring-search -zplugin $load sharat87/zsh-vim-mode +zplugin ice silent wait!1; zplugin $load zsh-users/zsh-syntax-highlighting