diff options
Diffstat (limited to 'lua/talha/plugins/vimFugitive.lua')
| -rw-r--r-- | lua/talha/plugins/vimFugitive.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/talha/plugins/vimFugitive.lua b/lua/talha/plugins/vimFugitive.lua new file mode 100644 index 0000000..32563ab --- /dev/null +++ b/lua/talha/plugins/vimFugitive.lua @@ -0,0 +1,12 @@ +return { + { + "tpope/vim-fugitive", + config = function() + vim.keymap.set("n", "<leader>gs", vim.cmd.Git) + vim.keymap.set("n", "<leader>gb", ":Git blame<CR>") + -- see docs for more details + vim.keymap.set("n", "<leader>gk", ":diffget //3<CR>") -- get diff from upstream (merge) + vim.keymap.set("n", "<leader>gj", ":diffget //2<CR>") -- get diff from downstream (target) + end, + } +} |
