windwp / nvim-ts-autotag

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

Rename doesn't work with complicated typescript components #190

Open dmtrKovalenko opened 4 months ago

dmtrKovalenko commented 4 months ago

I am not sure about the reason and I didn't find any specific circumstances to reproduce but in any more or less complicated react components renaming tag doesn't work.

https://github.com/windwp/nvim-ts-autotag/assets/16926049/86201980-27c9-496d-921d-1676d3335cf5

Here I used a free example from tailwindui: https://tailwindui.com/components/marketing/elements/headers

PriceHiller commented 3 months ago

This might be difficult to resolve. I don't really use tsx at all, but this going to be related to our skip patterns most likely as to why it's failing.