Skip to content

Commit

Permalink
feat(mini-pairs): add toggle mini pairs keymap and function (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevintraver committed Sep 26, 2023
1 parent e54d0dd commit a7f971f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lua/lazyvim/plugins/coding.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ return {
"echasnovski/mini.pairs",
event = "VeryLazy",
opts = {},
keys = {
{
"<leader>up",
function()
local Util = require("lazy.core.util")
vim.g.minipairs_disable = not vim.g.minipairs_disable
if vim.g.minipairs_disable then
Util.warn("Disabled auto pairs", { title = "Option" })
else
Util.info("Enabled auto pairs", { title = "Option" })
end
end,
desc = "Toggle auto pairs",
},
},
},

-- Fast and feature-rich surround actions. For text that includes
Expand Down

0 comments on commit a7f971f

Please sign in to comment.