zsh-autosuggestions seems Incompatible with zsh-syntax-highlighting #27
jirutka
commented
Oct 1, 2014
I’m using both zsh-autosuggestions and zsh-syntax-highlighting with Antigen and it works well.
source $ADOTDIR/antigen.zsh
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle tarruda/zsh-autosuggestions
antigen apply
zmodload zsh/terminfo
# Make sure the terminal is in application mode, when zle is active. Only then
# are the values from $terminfo valid. And also activate autosuggestions.
if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
function zle-line-init () {
printf '%s' "${terminfo[smkx]}"
# Enable autosuggestions automatically
zle autosuggest-start
}
function zle-line-finish () {
printf '%s' "${terminfo[rmkx]}"
}
zle -N zle-line-init
zle -N zle-line-finish
fi
ruanyl
commented
Oct 1, 2014
@jirutka Thank you! Antigen looks awesome, probably I need to have a try
jirutka
commented
Oct 1, 2014
You should.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Here is settings for zsh-autosuggestions:

And settings for zsh-syntax-highlighting:

I got these errors each time I press arrow key UP and DOWN:

But if I remove any one of those two settings, the errors disappeared.