From 4f30e2d87ae92e78f97e4424ce5215f25015db69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 19 Jan 2024 10:51:47 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(nvim):=20move=20l?= =?UTF-8?q?azy=20keymaps=20into=20a=20custom=20group=20with=20l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/config/keymaps.lua | 11 ++++++++++- .config/nvim/lua/plugins/which-key.lua | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 39a128f0..a9e8acb1 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -11,6 +11,16 @@ local searching_brave = function() end map("n", "?", searching_brave, { noremap = true, silent = true, desc = "Search current word on brave search" }) +-- Lazy options +map("n", "ll", "Lazy", { desc = "Lazy" }) +-- stylua: ignore start +map("n", "ld", function() vim.fn.system({ "xdg-open", "https://lazyvim.org" }) end, { desc = "Docs" }) +map("n", "lr", function() vim.fn.system({ "xdg-open", "https://github.com/LazyVim/LazyVim" }) end, { desc = "Repo" }) +map("n", "le", "LazyExtras", { desc = "Extras" }) +map("n", "lc", function() Util.news.changelog() end, { desc = "LazyVim Changelog" }) +-- stylua: ignore end +map("n", "L", "") + -- Toggle background -- stylua: ignore map("n", "uB", function() Util.toggle("background", false, { "light", "dark" }) end, { desc = "Toggle Background" }) @@ -62,7 +72,6 @@ end, { desc = "Toggle Statusline" }) map("n", "cif", "LazyFormatInfo", { desc = "Formatting" }) map("n", "cic", "ConformInfo", { desc = "Conform" }) map("n", "cir", "LazyRoot", { desc = "Root" }) -map("n", "cie", "LazyExtras", { desc = "Extras" }) -- U for redo map("n", "U", "", { desc = "Redo" }) diff --git a/.config/nvim/lua/plugins/which-key.lua b/.config/nvim/lua/plugins/which-key.lua index dff646aa..e6864d2b 100644 --- a/.config/nvim/lua/plugins/which-key.lua +++ b/.config/nvim/lua/plugins/which-key.lua @@ -14,6 +14,7 @@ return { ["c"] = { name = " code" }, ["f"] = { name = "󰈔 file/find" }, ["g"] = { name = " git" }, + ["l"] = { name = "󰒲 lazy" }, ["q"] = { name = "󰗼 quit/session" }, ["s"] = { name = " search" }, ["u"] = { name = " ui" },