zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.28k stars 2.73k forks source link

vim: Cannot use % to jump to matching tag #12986

Open sadiksaifi opened 3 months ago

sadiksaifi commented 3 months ago

Check for existing issues

Describe the feature

When working with .jsx, .tsx, .html and etc files, the Shift + 5 keybinding does not jump between open and closing HTML/JSX tags although it works for brackets. This keybinding is expected to help navigate between matching pairs of tags but fails to do so.

Steps to Reproduce:

  1. Open any .jsx, .tsx, or .html file in Vim.
  2. Place the cursor on an opening or closing HTML/JSX tag.
  3. Press Shift + %.
  4. Expected Behavior:
  5. The cursor should jump to the matching closing or opening tag.

Actual Behavior:

  • No navigation occurs, or the cursor jumps incorrectly.

Additional Information: I have attached a video as well for more info, and this video is of Neovim 0.9 with tsserver lsp.

Zed version: 0.139.3 OS: MacOS Sonoma 14.5

If you guys fix, I am sold for Zed!

If applicable, add mockups / screenshots to help present your vision of the feature

https://github.com/zed-industries/zed/assets/86684667/1378edb0-4a37-40e0-965f-77aa12687faa

sadiksaifi commented 2 months ago

@ConradIrwin has looked at the issue or not ?

ConradIrwin commented 2 months ago

Not yet! If you want to pair with me on a fix: https://calendly.com/conradirwin/pairing

sadiksaifi commented 2 months ago

@ConradIrwin I would have love to help you but I don't have enough rust knowledge

sadiksaifi commented 1 month ago

@ConradIrwin @as-cii @maxbrunsfeld @nathansobo Guys I know there would have been other important issues/feature which would be more important than this issue/feature but this is the only one which is stopping me to completely switch to zed. I am open for any help to get this issue resolved, it's just that I don't know enough rust to fix this issue. I am still learning.