From e007f92cd76c82bfdf4f7058f516edc425aebab2 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 6 May 2021 21:44:34 +0200 Subject: Updates to nvim --- .config/nvim/lua/_which-key/init.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.config/nvim/lua/_which-key') diff --git a/.config/nvim/lua/_which-key/init.lua b/.config/nvim/lua/_which-key/init.lua index e378fb3..1770356 100644 --- a/.config/nvim/lua/_which-key/init.lua +++ b/.config/nvim/lua/_which-key/init.lua @@ -70,8 +70,8 @@ vim.api.nvim_set_keymap("n", "z", ':TZAtaraxis', {noremap = true, si vim.api.nvim_set_keymap("n", "c", ":BufferClose", {noremap = true, silent = true}) -- split window -vim.api.nvim_set_keymap("n", "h", ":vsplit", {noremap = true, silent = true}) -vim.api.nvim_set_keymap("n", "v", ":split", {noremap = true, silent = true}) +vim.api.nvim_set_keymap("n", "v", ":vsplit", {noremap = true, silent = true}) +vim.api.nvim_set_keymap("n", "h", ":split", {noremap = true, silent = true}) -- TODO create entire treesitter section @@ -101,7 +101,11 @@ local mappings = { r = {"ResetHunk", "Reset Hunk"}, R = {"ResetBuffer", "Reset Buffer"}, s = {"StageHunk", "Stage Hunk"}, - u = {"UndoStageHunk", "Undo Stage Hunk"} + u = {"UndoStageHunk", "Undo Stage Hunk"}, + o = {"Telescope git_status", "Open changed file"}, + b = {"Telescope git_branches", "Checkout branch"}, + c = {"Telescope git_commits", "Checkout commit"}, + C = {"Telescope git_bcommits", "Checkout commit(for current file)"}, }, l = { name = "+LSP", -- cgit v1.2.3-70-g09d2