nvim-ts-autotag icon indicating copy to clipboard operation
nvim-ts-autotag copied to clipboard

Not working inside tagged html literal in typescript file

Open abenz1267 opened this issue 3 years ago • 3 comments

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 avatar Jul 13 '22 17:07 abenz1267

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 avatar Jul 13 '22 17:07 abenz1267

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 <TYPE>_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.

abenz1267 avatar Jul 13 '22 19:07 abenz1267

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.

stale[bot] avatar Sep 11 '22 22:09 stale[bot]