diff --git a/.config/nvim/lua/my/git.lua b/.config/nvim/lua/my/git.lua index ef10e17..a385472 100644 --- a/.config/nvim/lua/my/git.lua +++ b/.config/nvim/lua/my/git.lua @@ -65,7 +65,9 @@ require('gitlinker').setup({ }) require('which-key').register({ ['g'] = { name = 'Git' } }) -map('n', 'gc', ':Git commit', 'commit') +require('which-key').register({ ['gc'] = { name = 'commit' } }) +map('n', 'gcc', ':Git commit', 'commit') +map('n', 'gca', ':Git commit --amend', 'amend') map('n', 'gp', ':Git push', 'push') require('which-key').register({ ['ga'] = { name = 'add' } }) map('n', 'gau', ':Git add --update --patch', '--update --patch')