1
0
mirror of https://github.com/amix/vimrc synced 2025-07-09 10:45:00 +08:00
This commit is contained in:
geezus
2021-06-30 12:00:07 -05:00
parent 43c7efba8d
commit 3afe70fe5a
1529 changed files with 3053 additions and 3018 deletions

6
sources_non_forked/vim-gitgutter/plugin/gitgutter.vim Normal file → Executable file
View File

@ -185,7 +185,8 @@ endfunction
" window. The format is [ added, modified, removed ], where each value
" represents the number of lines added/modified/removed respectively.
function! GitGutterGetHunkSummary()
return gitgutter#hunk#summary(winbufnr(0))
let bufnr = bufnr('')
return gitgutter#utility#is_active(bufnr) ? gitgutter#hunk#summary(bufnr) : [0,0,0]
endfunction
" }}}
@ -275,11 +276,8 @@ augroup gitgutter
autocmd ShellCmdPost * call gitgutter#all(1)
autocmd BufLeave term://* call gitgutter#all(1)
<<<<<<< HEAD
=======
autocmd User FugitiveChanged call gitgutter#all(1)
>>>>>>> 27ad0d07862847896f691309a544a206783c94d6
autocmd BufFilePre * GitGutterBufferDisable
autocmd BufFilePost * GitGutterBufferEnable