altermo/ultimate-autopair.nvim

github github
editing-support
stars 421
issues 8
subscribers 11
forks 1
CREATED

2023-02-02

UPDATED

15 days ago


:exclamation: Ultimate-autopair is at the moment in the beta stage of development. (versioning system)

Ultimate-autopair.nvim 0.6.1

Ultimate-autopair plugin aims to always work as you expect and be ultra customizable, while making it easy to configure. It has features which other auto-pairing plugins lack: multiline support, treesitter-node filtering and treesitter-filetype detection.

For development version, which is sometimes up to date with default branch, check out development
Requires neovim 0.9 (for older versions of neovim, check previous versions of plugin)
For some features, including string filtering, requires treesitter.

For new users, check out starter documentation (:help ultimate-autopair)

Installation

{
    'altermo/ultimate-autopair.nvim',
    event={'InsertEnter','CmdlineEnter'},
    branch='v0.6', --recommended as each new version will have breaking changes
    opts={
        --Config goes here
    },
}
use{
    'altermo/ultimate-autopair.nvim',
    event={'InsertEnter','CmdlineEnter'},
    branch='v0.6', --recommended as each new version will have breaking changes
    config=function ()
        require('ultimate-autopair').setup({
                --Config goes here
                })
    end,
}

Default configuration

For the default configuration, refer to the documentation (:help ultimate-autopair-default-config).

Demo

demo

Other plugins to supercharge auto-pairing

These are some other plugins which are related to pairing which have features that ultimate-autopair does not have.

  • endwise wisely add end in lua, ruby, etc... (Note: doesn't get broken by ultimate-autopair's newline)
  • tabout tab out of treesitter nodes
  • surround delete, change surrounding parentheses and much more...
  • autotag auto pair html tags

If you want to use this together with nvim-autopairs read :h ultimate-autopair-use-with-npairs

Donate

If you want to donate then you need to find the correct link (hint: 50₁₀):

Chat