zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

interferes with fast-syntax-highlighting bracket highlights

Open ibrokemypie opened this issue 8 months ago • 0 comments

General information

  • Terminal program: unknown unknown (foot 1.17.2)
  • Operating system: Linux (6.6.32 #1-NixOS SMP PREEMPT_DYNAMIC Sat May 25 14:22:56 UTC 2024 x86_64 GNU/Linux) (nix)
  • ZSH framework: Manual
  • ZSH version: zsh 5.9 (x86_64-pc-linux-gnu)
  • ZVM version: zsh-vi-mode 0.11.0

Basic examination

  • [X] I have read through the README page
  • [X] I have the latest version of zsh-vi-mode
  • [X] I have tested with another terminal program

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.

ibrokemypie avatar Jun 13 '24 02:06 ibrokemypie