-
-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSBufToggle #259
Comments
Maybe this would be better served as a separate issue, but for the use case described above, would it instead be possible to define a rule to exclude a specific chunk of a file from treesitter highlighting and fall back to Neovim highlighting? I also use styled-components (and the nvim plugin for it), and it would be awesome if there was something like:
|
this is a completely different issue indeed, and this is on the roadmap and i think it should be first addressed upstream. |
I guess that this would be really hard too. |
js land makes everything harder doesn't it x) |
When i work in some files, i sometime want to enable a plugin that uses the default neovim syntax (like styled-components stuff in js files).
Mapping TSBufDisable and TSBufEnable would work but it's a hassle and it would be easier to just map
TSBufToggle highlight
.The text was updated successfully, but these errors were encountered: