From f274a640943a766c2e1787ea70016ad1daec46b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jona=20L=C3=B6ffler?= <> Date: Tue, 23 Apr 2024 13:21:12 +0200 Subject: [PATCH] Add fugitive --- lua/custom/plugins/fugitive.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/custom/plugins/fugitive.lua diff --git a/lua/custom/plugins/fugitive.lua b/lua/custom/plugins/fugitive.lua new file mode 100644 index 00000000..ecf174df --- /dev/null +++ b/lua/custom/plugins/fugitive.lua @@ -0,0 +1,12 @@ +return { + 'tpope/vim-fugitive', + config = function() + vim.keymap.set('n', 'gg', ':Git') + vim.keymap.set('n', 'gp', ':Git push') + vim.keymap.set('n', 'gP', ':Git pull') + vim.keymap.set('n', 'gh', ':0Gclog') + vim.keymap.set('n', 'gd', ':Git difftool') + vim.keymap.set('n', 'gs', ':Gvdiffsplit') + vim.keymap.set('n', 'gx', ':Git mergetool') + end, +}