mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-07 07:40:45 +01:00
Use add-zsh-hook to remove need to call autosuggest_start.
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
#-------#
|
||||
|
||||
# Start the autosuggestion widgets
|
||||
autosuggest_start() {
|
||||
_zsh_autosuggest_start() {
|
||||
_zsh_autosuggest_check_deprecated_config
|
||||
_zsh_autosuggest_bind_widgets
|
||||
}
|
||||
|
||||
autoload -Uz add-zsh-hook
|
||||
add-zsh-hook precmd _zsh_autosuggest_start
|
||||
|
||||
Reference in New Issue
Block a user