Neovim plugin

paired-tags.nvim

Automatic tag closing, paired renaming and matching-tag highlighting in Neovim, powered by Tree-sitter.

  • Neovim
  • Lua
  • Tree-sitter

Main features

  • Automatic tag closing and paired renaming without searching for the closing tag.
  • Highlighting of matching opening and closing tags.
  • Indentation when pressing Enter between adjacent matching HTML tags.
  • Support for paired blocks and delimiters in Django and Jinja templates.

About the project

paired-tags.nvim helps you edit matching tags: it inserts a closing tag, keeps its name in sync when you rename the opening tag and highlights the matching pair.

The plugin works with HTML, XML, JSX/TSX, Vue and Svelte, HTML inside Markdown, and Django and Jinja HTML templates. Template support includes delimiter completion and paired blocks.

When a suitable Tree-sitter parser is unavailable or a pair cannot be identified safely, parser-dependent edits are skipped. The plugin does not install parsers automatically. PHP templates are not supported in the current implementation.

Configuration, requirements and lazy.nvim installation examples are in the project README on GitHub, along with the MIT-licensed source code and verification instructions.

Comments 0

Name: up to 40 characters.

After submitting, we will email you a link to confirm your email address.

Maximum 5000 characters.

No published comments yet.

All projects