mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Use add-zsh-hook to remove need to call autosuggest_start.
This commit is contained in:
parent
48d2dc1091
commit
00bd0e9125
9 changed files with 40 additions and 47 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue