~yerinalexey/dotfiles

ref: 144a38b0aa0a39003633d53b77fe4e3ca29c054b dotfiles/nvim/git.vim -rw-r--r-- 501 bytes
144a38b0Alexey Yerin river,update-volume: fix old wob crashes 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
" Git integration

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

" Close preview window on Escape
let g:gitgutter_close_preview_on_escape = 1

" Let vim-lsp overlap changes
let g:gitgutter_sign_priority = 9

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

" Staging, restoring and previewing hunks
nmap <leader>hh <Plug>(GitGutterPreviewHunk)
nmap <leader>hs <Plug>(GitGutterStageHunk)
nmap <leader>hu <Plug>(GitGutterUndoHunk)