nvim-ts-rainbow2
nvim-ts-rainbow2 copied to clipboard
Fix: capture multiple group with same name (Alternative to https://github.com/neovim/neovim/pull/17099)
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:
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.