mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 13:03:45 -05:00
Add default mappings.
This commit is contained in:
@@ -524,6 +524,14 @@ function! GitGutterGetHunks()
|
||||
return s:is_active() ? s:hunks : []
|
||||
endfunction
|
||||
|
||||
nnoremap <silent> <Plug>GitGutterNextHunk :<C-U>execute v:count1 . "GitGutterNextHunk"<CR>
|
||||
nnoremap <silent> <Plug>GitGutterPrevHunk :<C-U>execute v:count1 . "GitGutterPrevHunk"<CR>
|
||||
|
||||
if !hasmapto('<Plug>GitGutterNextHunk') && maparg(']h', 'n') ==# ''
|
||||
nmap ]h <Plug>GitGutterNextHunk
|
||||
nmap [h <Plug>GitGutterPrevHunk
|
||||
endif
|
||||
|
||||
augroup gitgutter
|
||||
autocmd!
|
||||
if g:gitgutter_eager
|
||||
|
||||
Reference in New Issue
Block a user