mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-14 13:03:49 +00:00
implement flog keymap to replace current buffer position
This commit is contained in:
parent
7b5e9cecc0
commit
e3741640c5
@ -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' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user