nvim: ftplugin: gitcommit: Add diff section jump only for git commits
This commit is contained in:
parent
f43e74690f
commit
5e1995d731
2 changed files with 7 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue