windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.63k stars 87 forks source link

Not working inside tagged html literal in typescript file #67

Closed abenz1267 closed 1 year ago

abenz1267 commented 2 years ago

Hi,

it doesn't seem to work with Lit. html is inside a tagged string literal. Typescript. I have installed treesitter parser for TS.

Regards

abenz1267 commented 2 years ago

I see this seems to be a duplicate of https://github.com/windwp/nvim-ts-autotag/issues/32. But given the last answer in that issue, it should be doable/work?

abenz1267 commented 2 years ago

I've actually looked into this a little bit myself and it would work out of the box, if simply adding "typescript" as a filetype to the HTML_TAG object. But the JSX_TAG object interferes with it, so it doesn't work. I assume because it loads 1 _TAG per file, so with a typescript file it automatically loads the JSX_TAG object, which isn't desired, as one wants the HTML_TAG one.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.