2024-03-26 07:35:21 +00:00
|
|
|
-- Switch in fugitive.vim status window with the current one
|
|
|
|
vim.keymap.set('n', '<leader>gs', '<cmd>Gedit :<cr>', { desc = '[G]it [S]tatus' })
|
2024-03-26 07:36:01 +00:00
|
|
|
-- Fetch all changes
|
|
|
|
vim.keymap.set('n', '<leader>gF', '<cmd>Git fetch<cr>', { desc = '[G]it [F]etch' })
|
|
|
|
-- Push changes
|
|
|
|
vim.keymap.set('n', '<leader>gP', '<cmd>Git push<cr>', { desc = '[G]it [P]ush' })
|
|
|
|
-- Pull changes
|
|
|
|
vim.keymap.set('n', '<leader>gp', '<cmd>Git pull<cr>', { desc = '[G]it [P]ull' })
|
2024-03-30 15:33:23 +00:00
|
|
|
-- Open history graph
|
|
|
|
vim.keymap.set('n', '<leader>gl', '<cmd>Flogsplit<cr><cmd>wincmd k<cr><cmd>q<cr>', { desc = '[G]it [L]og' })
|
2024-03-26 07:35:21 +00:00
|
|
|
|
|
|
|
return {
|
|
|
|
-- Git related plugins
|
|
|
|
'tpope/vim-fugitive',
|
|
|
|
dependencies = {
|
2024-03-30 15:21:34 +00:00
|
|
|
{
|
|
|
|
'rbong/vim-flog',
|
|
|
|
lazy = true,
|
2024-03-30 15:33:23 +00:00
|
|
|
cmd = { 'Flogsplit' },
|
2024-03-30 15:21:34 +00:00
|
|
|
},
|
2024-07-25 18:57:09 +00:00
|
|
|
'idanarye/vim-merginal',
|
2024-03-26 07:35:21 +00:00
|
|
|
},
|
|
|
|
}
|