❗ Ultimate-autopair is currently in the beta stage of development. version system.
Ultimate-autopair plugin aims to always work as you expect, while making it relatively easy to configure. It has many features which other auto-pairing plugins lack: like multiline support, string/escape filtering and more. It is fully tested and has good docs.
For development version, check out development
Requires neovim 0.9 (for older versions of neovim, check previous versions of plugin)
For many features, including string filtering, requires treesitter.
For new users, check out starter documentation (:help ultimate-autopair
)
Packer
use{
'altermo/ultimate-autopair.nvim',
event={'InsertEnter','CmdlineEnter'},
branch='v0.6', --recomended as each new version will have breaking changes
config=function ()
require('ultimate-autopair').setup({
--Config goes here
})
end,
}
Lazy
{
'altermo/ultimate-autopair.nvim',
event={'InsertEnter','CmdlineEnter'},
branch='v0.6', --recomended as each new version will have breaking changes
opts={
--Config goes here
},
}
For the default configuration, refer to the documentation (:help ultimate-autopair-default-config
).
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... (can integration with ultimate-autopair) - tabout tab out of tsnode objects
- surround delete, change surrounding parentheses and much more...
- autotag auto add html tags
- nvim-autopairs integration: read
:h ultimate-autopair-use-with-npairs
If you want to donate then you need to find the correct link (hint: 50₁₀):