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

Rename tag even after adding an attribute

Open gabs712 opened this issue 1 year ago • 0 comments

Closing pairs are not renamed when changing tag and immediately adding an attribute after it

<div></div>
 ↑

When typing ciwmain class="test"<Esc>, it becomes:

<main class="test"></div>

It would be expected to be:

<main class="test"></main>

The current behavior is unintuitive and can potentially cause frustration with unnoticed unmatching tags.

gabs712 avatar Oct 07 '24 22:10 gabs712