feat: update plugins keybind
This commit is contained in:
parent
ceb959f533
commit
b3af59b5b2
|
@ -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,
|
||||
|
|
|
@ -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" },
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue