mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-17 17:23:24 +02:00
feat(snacks): use toggle
This commit is contained in:
parent
a3070f3c08
commit
8ffbc98161
7 changed files with 58 additions and 208 deletions
|
@ -121,7 +121,7 @@ end
|
|||
|
||||
---@param opts {skip_next: string, skip_ts: string[], skip_unbalanced: boolean, markdown: boolean}
|
||||
function M.pairs(opts)
|
||||
LazyVim.toggle.map("<leader>up", {
|
||||
Snacks.toggle({
|
||||
name = "Mini Pairs",
|
||||
get = function()
|
||||
return not vim.g.minipairs_disable
|
||||
|
@ -129,7 +129,8 @@ function M.pairs(opts)
|
|||
set = function(state)
|
||||
vim.g.minipairs_disable = not state
|
||||
end,
|
||||
})
|
||||
}):map("<leader>up")
|
||||
|
||||
local pairs = require("mini.pairs")
|
||||
pairs.setup(opts)
|
||||
local open = pairs.open
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue