summaryrefslogtreecommitdiff
path: root/after/plugin/fugitive.lua
diff options
context:
space:
mode:
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)