diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-06 21:44:34 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-06 21:44:34 +0200 |
commit | e007f92cd76c82bfdf4f7058f516edc425aebab2 (patch) | |
tree | 5699be08f1a23f02d142d49931cd738b90cf1f9d /.config/nvim | |
parent | 1f05dec8bd65a8163d9cb20308b53f89f4633ae4 (diff) |
Updates to nvim
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/_galaxyline/init.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/_which-key/init.lua | 10 | ||||
-rw-r--r-- | .config/nvim/vim-script/_goyo/init.vim | 2 |
3 files changed, 8 insertions, 6 deletions
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", "<leader>z", ':TZAtaraxis<CR>', {noremap = true, si vim.api.nvim_set_keymap("n", "<leader>c", ":BufferClose<CR>", {noremap = true, silent = true}) -- split window -vim.api.nvim_set_keymap("n", "<leader>h", ":vsplit<CR>", {noremap = true, silent = true}) -vim.api.nvim_set_keymap("n", "<leader>v", ":split<CR>", {noremap = true, silent = true}) +vim.api.nvim_set_keymap("n", "<leader>v", ":vsplit<CR>", {noremap = true, silent = true}) +vim.api.nvim_set_keymap("n", "<leader>h", ":split<CR>", {noremap = true, silent = true}) -- TODO create entire treesitter section @@ -101,7 +101,11 @@ local mappings = { r = {"<cmd>ResetHunk<cr>", "Reset Hunk"}, R = {"<cmd>ResetBuffer<cr>", "Reset Buffer"}, s = {"<cmd>StageHunk<cr>", "Stage Hunk"}, - u = {"<cmd>UndoStageHunk<cr>", "Undo Stage Hunk"} + u = {"<cmd>UndoStageHunk<cr>", "Undo Stage Hunk"}, + o = {"<cmd>Telescope git_status<cr>", "Open changed file"}, + b = {"<cmd>Telescope git_branches<cr>", "Checkout branch"}, + c = {"<cmd>Telescope git_commits<cr>", "Checkout commit"}, + C = {"<cmd>Telescope git_bcommits<cr>", "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() |