nvim: add more git commands

This commit is contained in:
tastytea 2022-10-02 01:03:41 +02:00
parent 1339b8782b
commit 16d7ba1e3f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -69,4 +69,6 @@ map('n', '<Leader>gc', ':Git commit<CR>', 'commit')
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')
map('n', '<Leader>ga%', ':Git add %<CR>', 'This file')
map('n', '<Leader>gl', ':Git log --decorate<CR>', 'log')
map('n', '<Leader>gs', ':Git status<CR>', 'status')