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/_galaxyline/init.lua | 2 +- .config/nvim/lua/_which-key/init.lua | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/_galaxyline/init.lua b/.config/nvim/lua/_galaxyline/init.lua index 7fbeda9..e34c606 100644 --- a/.config/nvim/lua/_galaxyline/init.lua +++ b/.config/nvim/lua/_galaxyline/init.lua @@ -49,7 +49,7 @@ gls.left[1] = { t = colors.blue } vim.api.nvim_command('hi GalaxyViMode guifg=' .. mode_color[vim.fn.mode()]) - return ' ' + return '⏽ ' end, highlight = {colors.red, colors.bg} } 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