DISCLAIMER: The autopair functionality is coming from nvim-autopairs.
๐ Performance (Blazingly Fast!!!).
๐ช Fully compatible with anything that expects matchparen.vim to be there.
๐ Ease of use.
NOTE: Keep in mind that calling setup
disables the built-in
matchparen.vim plugin.
{
"utilyre/sentiment.nvim",
version = "*",
event = "VeryLazy", -- keep for lazy loading
opts = {
-- config
},
init = function()
-- `matchparen.vim` needs to be disabled manually in case of lazy loading
vim.g.loaded_matchparen = 1
end,
}
use({
"utilyre/sentiment.nvim",
tag = "*",
config = function()
require("sentiment").setup({
-- config
})
end,
})
require("sentiment").disable()
, :NoMatchParen
Disable the plugin.
require("sentiment").enable()
, :DoMatchParen
Re-enable the plugin.
This plugin re-uses the widely supported MatchParen
highlight group of the
former matchparen.vim plugin.
See :help nvim_set_hl()
for how you can change it.