mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2026-01-19 16:15:37 +01:00
Use add-zsh-hook to remove need to call autosuggest_start.
This commit is contained in:
parent
48d2dc1091
commit
00bd0e9125
10 changed files with 382 additions and 389 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