nvim: add keymapping for git --amend
This commit is contained in:
parent
b0be6f4b63
commit
a8ece74398
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user