addet some surroundings

This commit is contained in:
pika 2024-08-18 22:42:11 +02:00
parent 60d8eda0f0
commit 457ae17c15
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,20 @@
return{
"echasnovski/mini.pairs",
name = "mini-pairs",
event = "VeryLazy",
opts = {
modes = { insert = true, command = true, terminal = false },
-- skip autopair when next character is one of these
skip_next = [=[[%w%%%'%[%"%.%`%$]]=],
-- skip autopair when the cursor is inside these treesitter nodes
skip_ts = { "string" },
-- skip autopair when next character is closing pair
-- and there are more closing pairs than opening pairs
skip_unbalanced = true,
-- better deal with markdown code blocks
markdown = true,
},
config = function()
require("mini-pairs")
end,
}