mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-07 07:54:38 +02:00
feat: mini.pairs toggle
This commit is contained in:
parent
50b3050d30
commit
4d9407dc22
3 changed files with 16 additions and 14 deletions
|
@ -140,20 +140,6 @@ return {
|
|||
-- better deal with markdown code blocks
|
||||
markdown = true,
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>up",
|
||||
function()
|
||||
vim.g.minipairs_disable = not vim.g.minipairs_disable
|
||||
if vim.g.minipairs_disable then
|
||||
LazyVim.warn("Disabled auto pairs", { title = "Option" })
|
||||
else
|
||||
LazyVim.info("Enabled auto pairs", { title = "Option" })
|
||||
end
|
||||
end,
|
||||
desc = "Toggle Auto Pairs",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
LazyVim.mini.pairs(opts)
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue