implement flog keymap to replace current buffer position

This commit is contained in:
Baipyrus 2024-03-30 16:33:23 +01:00
parent 7b5e9cecc0
commit e3741640c5

View File

@ -6,6 +6,8 @@ vim.keymap.set('n', '<leader>gF', '<cmd>Git fetch<cr>', { desc = '[G]it [F]etch'
vim.keymap.set('n', '<leader>gP', '<cmd>Git push<cr>', { desc = '[G]it [P]ush' }) vim.keymap.set('n', '<leader>gP', '<cmd>Git push<cr>', { desc = '[G]it [P]ush' })
-- Pull changes -- Pull changes
vim.keymap.set('n', '<leader>gp', '<cmd>Git pull<cr>', { desc = '[G]it [P]ull' }) vim.keymap.set('n', '<leader>gp', '<cmd>Git pull<cr>', { desc = '[G]it [P]ull' })
-- Open history graph
vim.keymap.set('n', '<leader>gl', '<cmd>Flogsplit<cr><cmd>wincmd k<cr><cmd>q<cr>', { desc = '[G]it [L]og' })
return { return {
-- Git related plugins -- Git related plugins
@ -14,7 +16,7 @@ return {
{ {
'rbong/vim-flog', 'rbong/vim-flog',
lazy = true, lazy = true,
cmd = { 'Flog' }, cmd = { 'Flogsplit' },
}, },
}, },
} }