A Neovim plugin written in Lua for intelligent bracket pair completion, deletion, and navigation.
Smart Pairs is a Neovim plugin written in Lua that automates bracket pair management during code editing. It intelligently completes, deletes, and navigates between pairs like parentheses, brackets, and quotes based on context, reducing manual typing and errors. The plugin supports customizable rules per file type and integrates with Neovim's editing workflow.
Neovim users, particularly developers who write code in multiple languages and want faster, more accurate bracket handling without relying on heavier IDE features.
Developers choose Smart Pairs for its lightweight, Lua-based implementation tailored for Neovim, offering fine-grained control over pair behavior and seamless integration with native editing commands like dot repeat.
Ultimate smart pairs 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.
Intelligently inserts and manages bracket pairs based on code context, as shown in examples like auto-completing '(|)' and handling escapes, reducing manual keystrokes.
Supports custom pair definitions per language, allowing tailored behavior for Python triple quotes or Lua escaped brackets via the 'pairs' configuration option.
Compatible with Neovim's repeat command for reversible actions, enhancing editing workflow consistency as noted in the features section.
Offers smart space, enter, and deletion that handle indentation and nested structures, improving code formatting efficiency with detailed examples in the README.
The project is in refactoring with issues and PRs paused, leading to potential bugs and lack of support, as warned in the announcement section.
Only supports single-character brackets, requiring snippet plugins for multi-char pairs, which limits use for languages like Markdown or HTML.
Setup involves numerous options, hooks, and per-file-type settings, which can be overwhelming for users not familiar with Lua or Neovim scripting.