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

Hey @julianbopp can you give this another shot?

Some changes just hit main that may resolve this for you if it has the same root cause as #201.

PriceHiller avatar Jul 16 '24 18:07 PriceHiller

Hey @PriceHiller, thanks for your reply. I updated the plugin and tried again but it still doesn't work :(

julianbopp avatar Jul 16 '24 20:07 julianbopp

I have same issue.

carljohnson93 avatar Sep 05 '24 11:09 carljohnson93

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.

stale[bot] avatar Nov 09 '24 01:11 stale[bot]

still an issue

bartoszluka avatar Mar 10 '25 09:03 bartoszluka