feat(toggle): reworked as suggested in PR comments

This commit is contained in:
Oleg Kostyuk 2026-04-17 21:40:52 +02:00
parent b3ac8a8aec
commit 02c228bb2f
2 changed files with 1 additions and 14 deletions

View file

@ -153,6 +153,7 @@ Snacks.toggle.option("background", { off = "light", on = "dark" , name = "Dark B
Snacks.toggle.dim():map("<leader>uD")
Snacks.toggle.animate():map("<leader>ua")
Snacks.toggle.indent():map("<leader>ug")
Snacks.toggle.codelens():map("<leader>uH")
Snacks.toggle.scroll():map("<leader>uS")
Snacks.toggle.profiler():map("<leader>dpp")
Snacks.toggle.profiler_highlights():map("<leader>dph")

View file

@ -222,20 +222,6 @@ return {
}):map("<leader>uW")
end,
},
{
"neovim/nvim-lspconfig",
opts = function()
Snacks.toggle({
name = "LSP Codelens",
get = function()
return vim.lsp.codelens.is_enabled()
end,
set = function(state)
vim.lsp.codelens.enable(state)
end,
}):map("<leader>uH")
end,
},
-- better diagnostics list and others
{