~yerinalexey/dotfiles

ref: b75055cfb2820b41efd348481e49a2f487355931 dotfiles/nvim/git.vim -rw-r--r-- 434 bytes
b75055cf — Alexey Yerin bottom: fix indents 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Git integration

" Do not show zero-count hunks in Airline
let g:airline#extensions#hunks#non_zero_only = 1

" Prevent gitgutter for mapping its own keys
let g:gitgutter_map_keys = 0

" Jumping between hunks
nmap ) <Plug>(GitGutterNextHunk)
nmap ( <Plug>(GitGutterPrevHunk)

" Staging, restoring and previewing hunks
nmap <A-s> <Plug>(GitGutterStageHunk)
nmap <A-r> <Plug>(GitGutterUndoHunk)
nmap <A-h> <Plug>(GitGutterPreviewHunk)