-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update readme to prevent breaking html systax highlighting #21
Comments
Good point, but from my understanding the snippet you posted does not really make sense.
You also enabled both html and javascript injections at the same time, so the text nodes will be parsed with both parsers and the highlighting will be somewhat random (it is even flickering for me). Either way we can improve the readme and tell the user that he should add the injection for whatever language he is using inside the templates, sadly this can not be inferred from filetypes. |
I took the snippet from the go.nvim plugin: https://github.com/ray-x/go.nvim/blob/master/queries/gotmpl/injections.scm but I guess it is incorrect then. |
I opened a PR here and also for go.nvim Feel free to check it out. |
Great! |
When using the instructions in the readme file, I got confused because when I created a .gotmpl the template code would get syntax highlighting but the highlighting of the html would break. I would suggest adding to the readme that in order for the gotmpl highlighting to work, one would need to add the file
.config/nvim/queries/gotmpl/injections.scm
:to get the proper injections.
The text was updated successfully, but these errors were encountered: