Skip to content

Highlighting doesn't work when using both marlonrichert/zsh-autocomplete and zsh-users/zsh-syntax-highlighting #145

@kinland

Description

@kinland

There appears to be a compatibility issue between zsh-history-substring-search and these modules:

  • zsh-users/zsh-syntax-highlighting
  • zsh-users/zsh-autosuggestions
  • zsh-users/zsh-syntax-highlighting

It seems that when I try to enable all 4 plugins, syntax highlighting doesn't work with zsh-history-substring-search. However, disabling either zsh-autocomplete or zsh-syntax-highlighting causes highlighting to function properly.

Working (listed order is load order):

  • zsh-syntax-highlighting + zsh-history-substring-search
  • zsh-autosuggestions + zsh-syntax-highlighting + zsh-history-substring-search
  • zsh-autocomplete + zsh-autosuggestions + zsh-history-substring-search

Not working (changing the order doesn't seem to help):

  • zsh-autocomplete + zsh-autosuggestions + zsh-syntax-highlighting + zsh-history-substring-search

Incidentally, replacing zsh-syntax-highlighting with fast-syntax-highlighting seems to make things work. Highlighting is a little different, but close.

Possibly related to marlonrichert/zsh-autocomplete#517

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions