hunks: still some problems with coc-git integration

Fix remaining problems, test correctly for enabled coc-git plugin.
This commit is contained in:
Christian Brabandt
2020-04-01 10:43:11 +02:00
parent 29eec37c66
commit adf2afae7c
2 changed files with 32 additions and 3 deletions

View File

@@ -211,7 +211,11 @@ function! airline#extensions#load()
endif
if get(g:, 'airline#extensions#hunks#enabled', 1)
\ && (exists('g:loaded_signify') || exists('g:loaded_gitgutter') || exists('g:loaded_changes') || exists('g:loaded_quickfixsigns'))
\ && (exists('g:loaded_signify')
\ || exists('g:loaded_gitgutter')
\ || exists('g:loaded_changes')
\ || exists('g:loaded_quickfixsigns')
\ || exists(':CocCommand'))
call airline#extensions#hunks#init(s:ext)
call add(s:loaded_ext, 'hunks')
endif