mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-18 01:34:32 +02:00
feat(snacks): use toggle
This commit is contained in:
parent
a3070f3c08
commit
8ffbc98161
7 changed files with 58 additions and 208 deletions
|
@ -226,7 +226,7 @@ return {
|
|||
"lukas-reineke/indent-blankline.nvim",
|
||||
event = "LazyFile",
|
||||
opts = function()
|
||||
LazyVim.toggle.map("<leader>ug", {
|
||||
Snacks.toggle({
|
||||
name = "Indention Guides",
|
||||
get = function()
|
||||
return require("ibl.config").get_config(0).enabled
|
||||
|
@ -234,7 +234,7 @@ return {
|
|||
set = function(state)
|
||||
require("ibl").setup_buffer(0, { enabled = state })
|
||||
end,
|
||||
})
|
||||
}):map("<leader>ug")
|
||||
|
||||
return {
|
||||
indent = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue