From b3af59b5b2e0817845aa91650b7ee358676405d2 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Tue, 27 Aug 2024 23:38:22 +0100 Subject: [PATCH] feat: update plugins keybind --- lua/core/dashboard.lua | 2 ++ lua/core/keybinds.lua | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/lua/core/dashboard.lua b/lua/core/dashboard.lua index 99eb7b7..c36ee46 100644 --- a/lua/core/dashboard.lua +++ b/lua/core/dashboard.lua @@ -35,6 +35,8 @@ local buttons = { dashboard.button("SPC f f", "Find File "), dashboard.button("SPC f g", "Find Word "), dashboard.button("SPC f e", "Edit File "), + + dashboard.button("SPC l u", "Update Plugins "), }, opts = { spacing = 1, diff --git a/lua/core/keybinds.lua b/lua/core/keybinds.lua index c4108fb..dd9fc2e 100644 --- a/lua/core/keybinds.lua +++ b/lua/core/keybinds.lua @@ -2,11 +2,14 @@ local wk = require("which-key") wk.add({ { ".", ":e ", desc = "Edit File", silent = false }, + { "b", group = "buffers" }, { "bc", "BufferClose!", desc = "Close" }, { "bd", "BufferDelete!", desc = "Delete" }, + { "e", group = "editor" }, { "ec", "noh", desc = "Clear Search" }, + { "f", group = "file" }, { "fa", "Telescope find_files hidden=true search_dirs=~", desc = "Find Hidden (~)" }, { "fe", ":e ", desc = "Edit File", silent = false }, @@ -15,15 +18,21 @@ wk.add({ { "fp", "Telescope find_files hidden=true", desc = "Find File" }, { "fs", ":w!", desc = "Force Write" }, { "fw", ":w", desc = "Write" }, + { "g", group = "git" }, { "gg", "Neogit", desc = "Neogit" }, + { "r", group = "tree" }, { "rf", "NvimTreeFocus", desc = "Focus" }, { "rt", "NvimTreeToggle", desc = "Toggle" }, + { "t", group = "tabs" }, { "th", "BufferMovePrevious", desc = "Move Previous" }, { "tj", "BufferPrevious", desc = "Previous" }, { "tk", "BufferNext", desc = "Next" }, { "tl", "BufferMoveNext", desc = "Move Next" }, { "tn", "tabnew", desc = "New Tab" }, + + { "l", group = "lazy" }, + { "lu", "Lazy update", desc = "Update Plugins" }, })