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 +++++++--- .config/nvim/vim-script/_goyo/init.vim | 2 -- 3 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 .config/nvim/vim-script/_goyo/init.vim (limited to '.config/nvim') 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", diff --git a/.config/nvim/vim-script/_goyo/init.vim b/.config/nvim/vim-script/_goyo/init.vim deleted file mode 100644 index f617194..0000000 --- a/.config/nvim/vim-script/_goyo/init.vim +++ /dev/null @@ -1,2 +0,0 @@ -autocmd! User GoyoEnter Limelight lua require('galaxyline').disable_galaxyline() -autocmd! User GoyoLeave Limelight! lua require('galaxyline').galaxyline_augroup() -- cgit v1.2.3-70-g09d2