return { -- Git related plugins 'tpope/vim-fugitive', dependencies = { { 'rbong/vim-flog', lazy = true, cmd = { 'Flogsplit' }, }, 'idanarye/vim-merginal', }, config = function() -- 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' }) -- Open history graph vim.keymap.set('n', 'gl', 'Flogsplitwincmd kq', { desc = '[G]it [L]og' }) end, }