From: Samir Benmendil Date: Sun, 29 Oct 2023 16:17:13 +0000 (+0000) Subject: nvim: update lazyvim util functions X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/ec4438ad14a9075f27080be731de23f16916cdb4 nvim: update lazyvim util functions --- diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 169125b..e8b8287 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua @@ -76,8 +76,8 @@ end -- stylua: ignore start -- toggle options -map("n", "uf", require("lazyvim.plugins.lsp.format").toggle, { desc = "Toggle format on Save" }) -map("n", "ud", Util.toggle_diagnostics, { desc = "Toggle Diagnostics" }) +map("n", "uf", Util.format.toggle, { desc = "Toggle format on Save" }) +map("n", "ud", Util.toggle.diagnostics, { desc = "Toggle Diagnostics" }) local conceallevel = vim.o.conceallevel > 0 and vim.o.conceallevel or 3 map("n", "uc", function() Util.toggle("conceallevel", false, {0, conceallevel}) end, { desc = "Toggle Conceal" })