From 6e22ad5fc5faff65a593b269f976e0b31272acaa Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 26 Mar 2024 08:36:01 +0100 Subject: [PATCH] additional git keymaps --- lua/custom/plugins/fugitive.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/custom/plugins/fugitive.lua b/lua/custom/plugins/fugitive.lua index 6d12068..5562ab2 100644 --- a/lua/custom/plugins/fugitive.lua +++ b/lua/custom/plugins/fugitive.lua @@ -1,5 +1,11 @@ -- Switch in fugitive.vim status window with the current one vim.keymap.set('n', 'gs', 'Gedit :', { desc = '[G]it [S]tatus' }) +-- Fetch all changes +vim.keymap.set('n', 'gF', 'Git fetch', { desc = '[G]it [F]etch' }) +-- Push changes +vim.keymap.set('n', 'gP', 'Git push', { desc = '[G]it [P]ush' }) +-- Pull changes +vim.keymap.set('n', 'gp', 'Git pull', { desc = '[G]it [P]ull' }) return { -- Git related plugins