Skip to content

Commit

Permalink
Ensure our precmd runs before autosuggestions
Browse files Browse the repository at this point in the history
Fixes #317.
  • Loading branch information
marlonrichert committed Aug 2, 2021
1 parent 20b332c commit c37de22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/.autocomplete.__init__
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,7 @@ local mod; for mod in compinit config widget key key-binding recent-dirs async;
done

add-zsh-hook precmd .autocomplete.__init__.precmd

# Ensure we run before zsh-autosuggestions.
(( $precmd_functions[(I)_zsh_autosuggest_start] )) &&
precmd_functions=( ${precmd_functions[@]:#_zsh_autosuggest_start} _zsh_autosuggest_start )

0 comments on commit c37de22

Please sign in to comment.