feat: mini.pairs toggle

This commit is contained in:
Folke Lemaitre 2024-07-15 15:08:13 +02:00
parent 50b3050d30
commit 4d9407dc22
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 16 additions and 14 deletions

View file

@ -21,6 +21,13 @@ function M.map(lhs, toggle)
LazyVim.warn("Disabled " .. toggle.name, { title = toggle.name })
end
end, { desc = "Toggle" .. toggle.name })
M.wk(lhs, toggle)
end
function M.wk(lhs, toggle)
if not LazyVim.has("which-key.nvim") then
return
end
require("which-key").add({
{
lhs,