-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
HTML tags indentation doesn't work correctly in nvim #68
Comments
Hi, so I just tried this in helix, and this is also the case there. wonder if this is the case in other languages that inject html. So I am not sure if this is the issue with this parser or it is just the way tree-sitter handles things. For example, the text editors have a hard time, where you use the shortcut for comments. They inject html comments, even if the blade comments are fully configured |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So when I am in an html file and I have something like this
<div>|</div>
and I press enter it expands to this:but when I am in a blade file the same action expands to this:
At the same time when if I put the cursor here:
It expands correctly to this:
And it also expands correctly if I press o/O in normal mode
I have already tried copy-pasting the contents of https://github.com/nvim-treesitter/nvim-treesitter/blob/1aad04ecde5ebf8f2b3eea5c6f39d38b251757f5/queries/html_tags/indents.scm into after/queries/blade/indents.scm and indent is enabled inside my treesitter config but that didn't change anything.
Does anyone has the same issue ?
The text was updated successfully, but these errors were encountered: