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
Does not work in template literals of JS/TS files #32
Comments
|
it can't work on template |
|
@windwp thanks, do you know if this is due to a limitation in Treesitter/Neovim? Is that something I could raise there? |
|
Sorry to bump an old issue, just wondering if there's any chance for an update here? @bennypowers suggests this should be possible, and with JS functions returning HTML templates becoming more common, this would be a great quality of life improvement! :) |
|
see #78 which fixes this Screencast.from.10-06-2022.11.47.39.AM.trimmed.1.mp4 |
|
Wow that was fast, many thanks @bennypowers! Fingers crossed for a merge on this soon. |
|
sure thing use { 'bennypowers/nvim-ts-autotag', { branch = 'template-tags' } } |
|
@windwp would you be able to merge this in? |
|
I'm also using this and would really appreciate it getting in, I'm using the bennypowers branch for now though and it's working great. |

Treesitter understands nested tags in Template Literals but I can't get auto-tag to see them (working fine in HTML files)
Example - typing standard js file:
Would expect:
Actually get:
Possibly related to #21
The text was updated successfully, but these errors were encountered: