windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.62k stars 86 forks source link

Added information to the README about enabling XML support in Treesitter #129

Closed jarimayenburg closed 10 months ago

jarimayenburg commented 1 year ago

I noticed that this plugin wasn't working on XML files. It turns out that there is no XML parser available in Treesitter, so Treesitter just doesn't start in XML files. There is a parser for HTML available though, which is not perfect but works fine. Work is being done on a proper XML parser as we speak (https://github.com/nvim-treesitter/nvim-treesitter/pull/5194) but it's not quite there yet.

I wrote a bit of info on how to configure this so others don't need to figure this out for themselves.

stale[bot] commented 11 months ago

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.