A Neovim plugin that uses Tree-sitter to automatically close and rename HTML/XML tags across multiple filetypes.
nvim-ts-autotag is a Neovim plugin that automatically closes and renames HTML/XML tags using Tree-sitter's parsing capabilities. It solves the tedious task of manually managing tag pairs in web development, templating languages, and markup files by providing intelligent, context-aware autocompletion.
Neovim users who work with HTML, XML, JSX, Vue, Svelte, or other templating languages and want faster, more accurate tag editing directly in their editor.
Developers choose nvim-ts-autotag because it uses Tree-sitter for precise AST-based tag matching, supports a wide range of filetypes out of the box, and offers configurable behavior without relying on error-prone regex patterns.
Use treesitter to auto close and auto rename html tag
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Leverages Tree-sitter's abstract syntax tree for context-aware tag operations, eliminating regex errors and ensuring reliable matching, as emphasized in the philosophy.
Works out-of-the-box with over a dozen languages including HTML, JSX, Vue, and Svelte, covering most web and templating needs directly from the README list.
Allows global and per-filetype settings, plus extensible aliases and query overrides, enabling customization for unsupported languages or parser changes.
Designed to load only when needed, reducing startup time without requiring lazy loading, as noted in the setup section.
Requires separate installation and maintenance of Tree-sitter parsers for each language, adding complexity and potential setup failures.
Setup involves Lua code and migration from deprecated nvim-treesitter.configs, which can be cumbersome for users less familiar with Neovim's ecosystem.
Extending support for new languages or overriding queries requires understanding Tree-sitter patterns, with limited guidance beyond basic examples in the README.