From: Samir Benmendil Date: Mon, 27 Jan 2025 22:42:09 +0000 (+0000) Subject: nvim: use Snacks.toggle instead of lazyvim.util.toggle X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/e173809be5f033ce92e16e2969509e4e57d127b4 nvim: use Snacks.toggle instead of lazyvim.util.toggle The latter is depracated. --- diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 1e71154..fc3ba2f 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua @@ -76,9 +76,9 @@ vim.keymap.set("n", "[w", diagnostic_goto(false, "WARN"), { desc = "Prev Warning -- toggle options vim.keymap.set("n", "uf", Util.format.toggle, { desc = "Toggle format on Save" }) -vim.keymap.set("n", "ud", Util.toggle.diagnostics, { desc = "Toggle Diagnostics" }) +vim.keymap.set("n", "ud", Snacks.toggle.diagnostics, { desc = "Toggle Diagnostics" }) local conceallevel = vim.o.conceallevel > 0 and vim.o.conceallevel or 3 -vim.keymap.set("n", "uc", function() Util.toggle("conceallevel", false, {0, conceallevel}) end, { desc = "Toggle Conceal" }) +vim.keymap.set("n", "uc", function() Snacks.toggle("conceallevel", false, {0, conceallevel}) end, { desc = "Toggle Conceal" }) -- highlights under cursor if vim.fn.has("nvim-0.9.0") == 1 then