sorin-ionescu / prezto

The configuration framework for Zsh
MIT License
13.98k stars 4.49k forks source link

Syntax highlighting doesnt update with custom autosuggest-accept (key binding from auto-suggestion) #2055

Open jiarui-z opened 1 year ago

jiarui-z commented 1 year ago

Description

I customized the auto-suggestion acception key binding with bindkey ',' autosuggest-accept in my zshrc. When I pressed , to accept the suggestion, the syntax highlighting doesn't update. The relative order of plugins follows what is told on the readme the relative order of loading the modules would be syntax-highlighting, history-substring-search and autosuggestions.

Expected behavior

Syntax highlighting updates correctly

image

Actual behavior

After pressing ,

image

The highlighting only updated if I press another key(space in this case)

image

Steps to Reproduce

  1. add bindkey ',' autosuggest-accept to your zshrc
  2. enable auto-suggestion and syntax-highliting. My plugin list:
    zstyle ':prezto:load' pmodule \
    'environment' \
    'terminal' \
    'editor' \
    'history' \
    'directory' \
    'spectrum' \
    'utility' \
    'git' \
    'completion' \
    'syntax-highlighting' \
    'history-substring-search' \
    'autosuggestions' \
    'prompt'

Versions