jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
3.31k stars 113 forks source link

interferes with fast-syntax-highlighting bracket highlights #284

Open ibrokemypie opened 5 months ago

ibrokemypie commented 5 months ago

General information

Basic examination

Problem description

When using zsh-vi-mode in combination with fast-syntax-highlighting (https://github.com/zdharma-continuum/fast-syntax-highlighting) the bracket pair highlighting gets confused in normal mode, and only highlights the other bracket of the pair, not the bracket the cursor is actually sitting on.

Reproduction steps

  1. Install zsh-vi-mode and fast-syntax-highlighting
  2. Type cat ({})
  3. Enter normal mode
  4. Move your cursor to ) and observe that ( is the only character highlighted (same goes for } or the other way with the pairs)

Expected behavior

Both brackets are highlighted, the one that is currently selected in the normal colour, and its pair in another colour.