A super powerful autopair plugin for Neovim written in Lua that automatically inserts and manages bracket pairs.
nvim-autopairs is a Neovim plugin written in Lua that automatically inserts and manages bracket pairs (like parentheses, braces, quotes) as you type. It solves the problem of manual bracket matching, reducing keystrokes and preventing syntax errors while coding. The plugin is highly configurable and integrates with Neovim's modern features like Treesitter and completion engines.
Neovim users, particularly developers who write code in languages with heavy bracket usage (e.g., Lua, JavaScript, Python) and want to streamline their editing workflow with intelligent autopairing.
Developers choose nvim-autopairs for its deep Neovim integration, extensive customization via Lua rules, and performance—it's a lightweight yet powerful alternative to older Vim autopair plugins, designed specifically for Neovim's Lua API.
autopairs for neovim written in lua
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports multiple bracket types and custom pairs, allowing adaptation to various programming languages and user preferences.
Integrates with Treesitter to disable autopairs in strings or comments, preventing unwanted insertions and improving code accuracy.
Offers a Lua API to define rules with conditions based on regex, filetype, and position, enabling precise control over autopair behavior.
Fast Wrap feature provides a keybinding to quickly enclose text with brackets, speeding up code refactoring and editing tasks.
Setting up integrations with completion plugins like nvim-cmp requires complex Lua code, which can be error-prone and intimidating for newcomers.
Exclusively designed for Neovim with Lua, limiting usability in other editors or Vim setups without Lua support, creating vendor lock-in.
Custom rules can overlap or interfere, necessitating careful management to avoid unexpected autopairing behavior in complex configurations.