nvim-ts-rainbow2 icon indicating copy to clipboard operation
nvim-ts-rainbow2 copied to clipboard

Fix: capture multiple group with same name (Alternative to https://github.com/neovim/neovim/pull/17099)

Open binhtran432k opened this issue 1 year ago • 1 comments

This PR will add a workaround for capture multiple group with same name (Alternative to https://github.com/neovim/neovim/pull/17099). The solution is add index to capture and get only the name in strategies

I only fixed html query first. @HiPhish, you should solve the remain queries by yourself. Thanks for a nice plugin.

This is a demo: image

binhtran432k avatar Jun 12 '23 08:06 binhtran432k

That's a really clever hack, I love it. But it is still a hack and I prefer to avoid hacks. I think energy would be better spent solving the upstream issue in Neovim so everyone can profit. On the other hand, this could be a stopgap measure which I can leave undocumented and then silently remove again once Neovim is fixed. I think I'll have to think about this for a while.

HiPhish avatar Jun 12 '23 21:06 HiPhish