diff options
| author | talha <talha@talhaamir.xyz> | 2025-12-06 15:08:59 +0500 |
|---|---|---|
| committer | talha <talha@talhaamir.xyz> | 2025-12-06 15:08:59 +0500 |
| commit | 75b48fc3247b412bb1580c47e96022cffdc8ba9a (patch) | |
| tree | 20f615aae971834ebc1490b41cecdc3d0e9c4a7d /lua/talha/plugins/vimFugitive.lua | |
| parent | 26161cefcda38711c7c8e166ccca7478bcaf18f4 (diff) | |
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, + } +} |
