summaryrefslogtreecommitdiff
path: root/after/plugin/fugitive.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2023-11-19 13:47:03 +0500
committertalha <talha@talhaamir.xyz>2023-11-19 13:47:03 +0500
commita75d4659bfac04a1f5cad4166cc68f873768c653 (patch)
tree1e3d7f0198bd16ca3270bcb3a72955f21738971a /after/plugin/fugitive.lua
Adding files for upload
Diffstat (limited to 'after/plugin/fugitive.lua')
-rw-r--r--after/plugin/fugitive.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/after/plugin/fugitive.lua b/after/plugin/fugitive.lua
new file mode 100644
index 0000000..a8aa35c
--- /dev/null
+++ b/after/plugin/fugitive.lua
@@ -0,0 +1,5 @@
+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)