nvim-ts-autotag
nvim-ts-autotag copied to clipboard
Autotag inserts tag name incorrectly after trailing slash
I noticed some weird behavior when trying to insert self closing tags in JSX. After placing the trailing slash autotag inserts the tag name after it for some reason. I've verified that the problem only occurs with autotag enabled, but it could of course be caused by some interaction with other autocomplete plugins for example. I do not have a minimal repro at this time, but I can provide the full nvim config if needed.
Treesitter version: master commit 3da5cfb Autotag version: main commit 6be1192 Nvim version info:
{
api_compatible = 0,
api_level = 11,
api_prerelease = false,
major = 0,
minor = 9,
patch = 1,
prerelease = false
}
Sometimes it inserts the next tag name instead of the current tag:
having same issue
Same issue here. For now I've worked around this by setting
enable_close_on_slash = false
in the treesitter autotag config.
~~@Kachajal This fixed it for me thanks!~~ still getting the same issue as @matthewrosse
Looks like it's been fixed in the latest version.
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.