feat: update plugins keybind

This commit is contained in:
Muhammad Nauman Raza 2024-08-27 23:38:22 +01:00
parent ceb959f533
commit b3af59b5b2
Signed by: devraza
GPG key ID: 91EAD6081011574B
2 changed files with 11 additions and 0 deletions

View file

@ -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,

View file

@ -2,11 +2,14 @@ local wk = require("which-key")
wk.add({
{ "<leader>.", ":e ", desc = "Edit File", silent = false },
{ "<leader>b", group = "buffers" },
{ "<leader>bc", "<cmd>BufferClose!<cr>", desc = "Close" },
{ "<leader>bd", "<cmd>BufferDelete!<cr>", desc = "Delete" },
{ "<leader>e", group = "editor" },
{ "<leader>ec", "<cmd>noh<cr>", desc = "Clear Search" },
{ "<leader>f", group = "file" },
{ "<leader>fa", "<cmd>Telescope find_files hidden=true search_dirs=~<cr>", desc = "Find Hidden (~)" },
{ "<leader>fe", ":e ", desc = "Edit File", silent = false },
@ -15,15 +18,21 @@ wk.add({
{ "<leader>fp", "<cmd>Telescope find_files hidden=true<cr>", desc = "Find File" },
{ "<leader>fs", "<cmd>:w!<cr>", desc = "Force Write" },
{ "<leader>fw", "<cmd>:w<cr>", desc = "Write" },
{ "<leader>g", group = "git" },
{ "<leader>gg", "<cmd>Neogit<cr>", desc = "Neogit" },
{ "<leader>r", group = "tree" },
{ "<leader>rf", "<cmd>NvimTreeFocus<cr>", desc = "Focus" },
{ "<leader>rt", "<cmd>NvimTreeToggle<cr>", desc = "Toggle" },
{ "<leader>t", group = "tabs" },
{ "<leader>th", "<cmd>BufferMovePrevious<cr>", desc = "Move Previous" },
{ "<leader>tj", "<cmd>BufferPrevious<cr>", desc = "Previous" },
{ "<leader>tk", "<cmd>BufferNext<cr>", desc = "Next" },
{ "<leader>tl", "<cmd>BufferMoveNext<cr>", desc = "Move Next" },
{ "<leader>tn", "<cmd>tabnew<cr>", desc = "New Tab" },
{ "<leader>l", group = "lazy" },
{ "<leader>lu", "<cmd>Lazy update<cr>", desc = "Update Plugins" },
})