Skip to content

altermo/ultimate-autopair.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❗ Ultimate-autopair is currently in maintenance mode, no new features will be added in the near future

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

Lazy
{
    'altermo/ultimate-autopair.nvim',
    event={'InsertEnter','CmdlineEnter'},
    branch='v0.6', --recommended as each new version will have breaking changes
    opts={
        --Config goes here
    },
}
Packer
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

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