mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(toggle): reworked as suggested in PR comments
This commit is contained in:
parent
b3ac8a8aec
commit
02c228bb2f
2 changed files with 1 additions and 14 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue