@@ -43,27 +43,28 @@ if ! zgen saved; then
43
43
# Completion generator
44
44
zgen load RobSis/zsh-completion-generator
45
45
46
- # Add Fish shell like syntax highlighting for ZSH
47
- if false ; then
48
- # With zsh-syntax-highlighting and zsh-autosuggestions both loaded
49
- # then history-incremental-pattern-search-backward doesn't work:
50
- # it only works for the first (random) few history items, then stops as if
51
- # my history is gone.
46
+ if is-at-least 5.0; then
47
+ # Add Fish shell like syntax highlighting for ZSH
52
48
zgen load zsh-users/zsh-syntax-highlighting
53
- fi
54
49
55
- # Add Fish-like autosuggestions to your ZSH
56
- if is-at-least 5.0; then
50
+ # Add Fish-like autosuggestions to your ZSH
57
51
zgen load zsh-users/zsh-autosuggestions
58
- # Fixes paste being slow.
59
- zstyle ' :bracketed-paste-magic' active-widgets ' .self-*'
60
-
61
- ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=( end-of-line vi-end-of-line vi-add-eol )
62
- ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS+=( forward-char vi-forward-char )
63
52
fi
64
53
65
54
# Save it all to init script
66
55
zgen save
67
56
fi
68
57
58
+ # Fixes paste being slow.
59
+ zstyle ' :bracketed-paste-magic' active-widgets ' .self-*'
60
+
61
+ ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=( end-of-line vi-end-of-line vi-add-eol )
62
+ ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS+=( forward-char vi-forward-char )
63
+ # Workaround until it's fixed in zsh-autosuggest:
64
+ # https://github.com/zsh-users/zsh-autosuggestions/pull/206
65
+ typeset -ar ZSH_AUTOSUGGEST_IGNORE_WIDGETS=(
66
+ " ${ZSH_AUTOSUGGEST_IGNORE_WIDGETS[@]} "
67
+ zle-isearch-update
68
+ )
69
+
69
70
# EOF
0 commit comments