update predefined strategy and allow user set ZSH_AUTOSUGGEST_STRATEGY before plugin initializing

This commit is contained in:
skywind3000 2018-03-07 22:12:02 +08:00
commit 270d988ae6
4 changed files with 18 additions and 7 deletions

View file

@ -11,7 +11,7 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'
# Prefix to use when saving original versions of bound widgets
ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX=autosuggest-orig-
ZSH_AUTOSUGGEST_STRATEGY=default
ZSH_AUTOSUGGEST_STRATEGY=${ZSH_AUTOSUGGEST_STRATEGY:-default}
# Widgets that clear the suggestion
ZSH_AUTOSUGGEST_CLEAR_WIDGETS=(