nvim-ts-autotag
nvim-ts-autotag copied to clipboard
Renaming XML tag doesn't work
Hello,
renaming tags does not work in XML files:
https://github.com/user-attachments/assets/a0c9e701-3b84-464e-966b-6f5816e562c3
My nvim-ts-autotag config:
require('nvim-ts-autotag').setup {
opts = {
-- Defaults
enable_close = true, -- Auto close tags
enable_rename = true, -- Auto rename pairs of tags
enable_close_on_slash = false, -- Auto close on trailing </
},
-- Also override individual filetype configs, these take priority.
-- Empty by default, useful if one of the "opts" global settings
-- doesn't work well in a specific filetype
per_filetype = {
['xml'] = {
enable_close = true,
enable_rename = true, -- Auto rename pairs of tags
},
},
aliases = {
['conaryrecipe'] = 'xml',
},
}
end,