mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] add some mappings for quickly manipulating diffs
This commit is contained in:
parent
2e543b7755
commit
11e651e1cb
1 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,13 @@ set commentstring=//%s
|
||||||
|
|
||||||
nnoremap Q <nop>
|
nnoremap Q <nop>
|
||||||
|
|
||||||
|
" normal mode
|
||||||
|
nnoremap <leader>dg :.diffget<CR>
|
||||||
|
nnoremap <leader>dp :.diffput<CR>
|
||||||
|
" visual mode
|
||||||
|
xnoremap <leader>dg :diffget<CR>
|
||||||
|
xnoremap <leader>dp :diffput<CR>
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue