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

Renaming XML tag doesn't work

Open julianbopp opened this issue 1 year ago • 3 comments

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,

julianbopp avatar Jul 16 '24 08:07 julianbopp