nvim: Switch to signify
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
8670913661
commit
b25091fae6
4 changed files with 11 additions and 24 deletions
|
@ -1,11 +0,0 @@
|
|||
nnoremap ]c :GitGutterNextHunk<CR>
|
||||
nnoremap [c :GitGutterPrevHunk<CR>
|
||||
nnoremap ghs :GitGutterStageHunk<CR>
|
||||
nnoremap ghu :GitGutterUndoHunk<CR>
|
||||
nnoremap ghp :GitGutterPreviewHunk<CR>
|
||||
nnoremap ghq :GitGutterQuickFix<CR>
|
||||
nnoremap ghf :GitGutterFold<CR>
|
||||
omap ih <Plug>(GitGutterTextObjectInnerPending)
|
||||
omap ah <Plug>(GitGutterTextObjectOuterPending)
|
||||
xmap ih <Plug>(GitGutterTextObjectInnerVisual)
|
||||
xmap ah <Plug>(GitGutterTextObjectOuterVisual)
|
10
nvim/.config/nvim/after/plugin/signify.vim
Normal file
10
nvim/.config/nvim/after/plugin/signify.vim
Normal file
|
@ -0,0 +1,10 @@
|
|||
nnoremap ghu :SignifyHunkUndo<CR>
|
||||
nnoremap ghp :SignifyHunkDiff<CR>
|
||||
nmap ]c <Plug>(signify-next-hunk)
|
||||
nmap [c <Plug>(signify-prev-hunk)
|
||||
nmap ]C 9999]c
|
||||
nmap [C 9999[c
|
||||
omap ih <Plug>(signify-motion-inner-pending)
|
||||
xmap ih <Plug>(signify-motion-inner-visual)
|
||||
omap ah <Plug>(signify-motion-outer-pending)
|
||||
xmap ah <Plug>(signify-motion-outer-visual)
|
|
@ -20,7 +20,7 @@ Plug 'tmux-plugins/vim-tmux-focus-events'
|
|||
" Git support
|
||||
Plug 'rhysd/git-messenger.vim'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'mhinz/vim-signify'
|
||||
Plug 'rhysd/conflict-marker.vim'
|
||||
Plug 'whiteinge/diffconflicts'
|
||||
Plug 'salcode/vim-interactive-rebase-reverse'
|
||||
|
|
|
@ -1,15 +1,3 @@
|
|||
" Let vim-gitgutter do its thing on large files
|
||||
let g:gitgutter_max_signs=1000
|
||||
let g:gitgutter_map_keys = 0
|
||||
let g:gitgutter_highlight_linenrs = 1
|
||||
let g:gitgutter_preview_win_floating = 1
|
||||
let g:gitgutter_use_location_list = 0
|
||||
let g:gitgutter_sign_added = '+a'
|
||||
let g:gitgutter_sign_modified = '+m'
|
||||
let g:gitgutter_sign_removed = '-r'
|
||||
let g:gitgutter_sign_removed_first_line = '^^'
|
||||
let g:gitgutter_sign_modified_removed = 'mr'
|
||||
|
||||
" suda vim
|
||||
let g:suda_smart_edit = 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue