From e3741640c5bb9f55eaa793e183d8c79debe5c7d7 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 30 Mar 2024 16:33:23 +0100 Subject: [PATCH] implement flog keymap to replace current buffer position --- lua/custom/plugins/fugitive.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/fugitive.lua b/lua/custom/plugins/fugitive.lua index b3b16f0..d4e16f7 100644 --- a/lua/custom/plugins/fugitive.lua +++ b/lua/custom/plugins/fugitive.lua @@ -6,6 +6,8 @@ vim.keymap.set('n', 'gF', 'Git fetch', { desc = '[G]it [F]etch' 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' }) return { -- Git related plugins @@ -14,7 +16,7 @@ return { { 'rbong/vim-flog', lazy = true, - cmd = { 'Flog' }, + cmd = { 'Flogsplit' }, }, }, }