nvim: add keymapping for git --amend

This commit is contained in:
tastytea 2022-10-02 11:19:54 +02:00
parent b0be6f4b63
commit a8ece74398
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -65,7 +65,9 @@ require('gitlinker').setup({
})
require('which-key').register({ ['<Leader>g'] = { name = 'Git' } })
map('n', '<Leader>gc', ':Git commit<CR>', 'commit')
require('which-key').register({ ['<Leader>gc'] = { name = 'commit' } })
map('n', '<Leader>gcc', ':Git commit<CR>', 'commit')
map('n', '<Leader>gca', ':Git commit --amend<CR>', 'amend')
map('n', '<Leader>gp', ':Git push<CR>', 'push')
require('which-key').register({ ['<Leader>ga'] = { name = 'add' } })
map('n', '<Leader>gau', ':Git add --update --patch<CR>', '--update --patch')