nvim: ftplugin: gitcommit: Add diff section jump only for git commits

This commit is contained in:
Sanchayan Maity 2020-05-09 14:17:43 +05:30
parent f43e74690f
commit 5e1995d731
2 changed files with 7 additions and 4 deletions

View file

@ -1 +1,7 @@
setlocal spell textwidth=72
setlocal spell
setlocal textwidth=72
setlocal iskeyword+=-
" Jump to sections of diff
nnoremap <buffer> [d ?^@@<CR>
nnoremap <buffer> ]d /^@@<CR>

View file

@ -95,9 +95,6 @@ omap ih <Plug>(GitGutterTextObjectInnerPending)
omap ah <Plug>(GitGutterTextObjectOuterPending)
xmap ih <Plug>(GitGutterTextObjectInnerVisual)
xmap ah <Plug>(GitGutterTextObjectOuterVisual)
" Jump to sections of diff
nnoremap [d ?^@@<CR>
nnoremap ]d /^@@<CR>
" For Neomake/Neoformat
nnoremap <Leader>nm :Neomake<CR>
nnoremap <Leader>nc :NeomakeClean<CR>