Skip to content

Commit ea7e08b

Browse files
committed
fugitive mapped as capital G to avoid conflicts
I have decided for a capital G because: 1. fugitive uses capital G for its command, so it make sense mnemonically 2. i use push/commit less often that preview and other hunk related keymapping, in vim
1 parent 126c350 commit ea7e08b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/custom/plugins/git.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ return {
1313
'tpope/vim-fugitive',
1414
config = function()
1515
vim.keymap.set('n', '<leader>gs', '<Cmd>:G<CR>', { desc = '[G]it [S]atus' })
16-
vim.keymap.set('n', '<leader>gp', '<Cmd>:Git push<CR>', { desc = '[G]it [P]ush' })
17-
vim.keymap.set('n', '<leader>gc', '<Cmd>:Git commit<CR>', { desc = '[G]it [C]ommit' })
16+
vim.keymap.set('n', '<leader>Gp', '<Cmd>:Git push<CR>', { desc = '[G]it [P]ush' })
17+
vim.keymap.set('n', '<leader>Gc', '<Cmd>:Git commit<CR>', { desc = '[G]it [C]ommit' })
1818
end,
1919
},
2020
-- TODO: This could be removed mapping fugitive git log with the right format

0 commit comments

Comments
 (0)