Use treesitter to autoclose and autorename xml tag
It work with tsx,vue,svelte.
Before Input After
------------------------------------
<div > <div></div>
------------------------------------
Neovim 0.5 with and nvim-treesitter to work
require('nvim-ts-autotag').setup()
local filetypes = {
'html', 'xml', 'javascript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue'
}
local skip_tags = {
'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'slot',
'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr','menuitem'
}
require('nvim-ts-closetag').setup({
filetypes = { "html" , "xml" },
})