add some git stuff

This commit is contained in:
mokou 2022-03-14 18:08:36 +01:00
parent cfad39f336
commit a2495e2cf6
2 changed files with 22 additions and 1 deletions

View file

@ -10,8 +10,9 @@ local leader_keymap = {
b = {
name = "+buffers",
b = {"<cmd>Telescope buffers<CR>", "List buffers"},
["<tab>"] = {"<cmd>b#<CR>", "Goto other buffer"},
d = {"<cmd>bd<CR>", "Delete buffer"}
},
["<tab><tab>"] = {"<cmd>b#<CR>", "Goto other buffer"},
w = {
name = "+window",
v = {"<cmd>vsplit<CR>", "Split vertically"},
@ -39,6 +40,12 @@ local leader_keymap = {
S = {"<cmd>Telescope lsp_workspace_symbols<CR>", "List workspace symbols"},
d = {"<cmd>Telescope lsp_definitions<CR>", "Goto definition"},
},
g = {
name = "+git",
s = {"<cmd>Telescope git_status<CR>", "Status"},
g = {"<cmd>Neogit<CR>", "Neogit"},
c = {"<cmd>Neogit commit<CR>", "Commit"},
},
}
wk.register_keymap("leader", leader_keymap)