mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-06 23:44:41 +02:00
feat: mini.pairs toggle
This commit is contained in:
parent
50b3050d30
commit
4d9407dc22
3 changed files with 16 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue