Closed ada-x64 closed 1 year ago
This fork is still going through a major refactoring. There won't be an extended mode anymore, instead you will be able to specify which query to use. I will also drop support for languages I don't know (tsx among them) because the queries will be rewritten from the ground up. Configuration will be different from the original plugin (hence why I call it rainbow 2).
I will have to rely on contributors to fill in the missing languages. So far I have been able to support 23 languages myself. Once the disclaimer in the README is gone this fork will be ready for use.
I am closing this issue since it is no longer applicable. Extended mode has been removed and support for tsx
files needs to be added by someone who knows TSX properly
Describe the bug
When opening .tsx files, I get the following error:
E5108: [...] Vim(append):Error executing lua callback: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:495: No handler for jsx-extended-rainbow-mode
Steps to reproduce
Config:
Example code (default index.tsx from create-react-app):
Expected behavior
Don't throw an error on TSX files and highlight properly.
Screenshots
Proper highlight (using nvim-ts-rainbow):
Error message (moving through tabs, most of it is irrelevant stack trace):
Improper highlighting: