From d49448c0561f3f824c54f1308f62cfbdc31695b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 17 Mar 2024 01:46:30 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(nvim):=20some=20k?= =?UTF-8?q?eymaps=20refactoring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/config/keymaps.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index fd72675e..cc16fd6c 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -2,6 +2,7 @@ local map = vim.keymap.set local o = vim.opt local Util = require("lazyvim.util") +local lazy = require("lazy") -- Search current word local searching_brave = function() @@ -14,13 +15,13 @@ map("n", "l", "") map("n", "ll", "Lazy", { desc = "Lazy" }) -- stylua: ignore start map("n", "ld", function() vim.fn.system({ "xdg-open", "https://lazyvim.org" }) end, { desc = "LazyVim Docs" }) -map("n", "lr", function() vim.fn.system({ "xdg-open", "https://github.com/LazyVim/LazyVim" }) end, - { desc = "LazyVim Repo" }) +map("n", "lr", function() vim.fn.system({ "xdg-open", "https://github.com/LazyVim/LazyVim" }) end, { desc = "LazyVim Repo" }) map("n", "lx", "LazyExtras", { desc = "Extras" }) map("n", "lc", function() Util.news.changelog() end, { desc = "LazyVim Changelog" }) -map("n", "lu", function() require("lazy").update() end, { desc = "Lazy Update" }) -map("n", "lC", function() require("lazy").check() end, { desc = "Lazy Check" }) -map("n", "ls", function() require("lazy").sync() end, { desc = "Lazy Sync" }) + +map("n", "lu", function() lazy.update() end, { desc = "Lazy Update" }) +map("n", "lC", function() lazy.check() end, { desc = "Lazy Check" }) +map("n", "ls", function() lazy.sync() end, { desc = "Lazy Sync" }) -- stylua: ignore end -- Disable LazyVim bindings