windwp / nvim-ts-autotag

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

Autorename not working #75

Closed matmatias closed 1 year ago

matmatias commented 2 years ago

Autorename is not working for me.

For example: when I'm inside a <div> tag and type ciwspan<Esc> it just rename the first <div> tag to span, and the other tag remains as </div>.

I've tested it on .tsx and .html files.

Here is my config: Treesitter Packer

PaulKushch commented 1 year ago

@MatMatias Any solutions on this? Have the same problem. Best regards

matmatias commented 1 year ago

@PaulKushch not yet.

PaulKushch commented 1 year ago

Solved for me to install tsx for treesitter config:)

stefanwatt commented 1 year ago

For me it does work in HTML but not in Svelte. Treesitter parser for svelte is installed.

matmatias commented 1 year ago

@PaulKushch I've installed tsx for treesitter here, and yet it does not work.

stale[bot] commented 1 year 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.