mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 05:55:38 +02:00
[hunks] also cache coc git status
This commit is contained in:
parent
5a490dd9ac
commit
74ca43a9b6
@ -73,8 +73,6 @@ function! airline#extensions#hunks#get_raw_hunks() abort
|
|||||||
else
|
else
|
||||||
let b:source_func = 's:get_hunks_empty'
|
let b:source_func = 's:get_hunks_empty'
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
let b:source_func = 's:get_hunks_empty'
|
|
||||||
endif
|
endif
|
||||||
return {b:source_func}()
|
return {b:source_func}()
|
||||||
endfunction
|
endfunction
|
||||||
@ -90,7 +88,8 @@ function! airline#extensions#hunks#get_hunks() abort
|
|||||||
\ get(b:, 'source_func', '') isnot# 's:get_hunks_signify' &&
|
\ get(b:, 'source_func', '') isnot# 's:get_hunks_signify' &&
|
||||||
\ get(b:, 'source_func', '') isnot# 's:get_hunks_gitgutter' &&
|
\ get(b:, 'source_func', '') isnot# 's:get_hunks_gitgutter' &&
|
||||||
\ get(b:, 'source_func', '') isnot# 's:get_hunks_empty' &&
|
\ get(b:, 'source_func', '') isnot# 's:get_hunks_empty' &&
|
||||||
\ get(b:, 'source_func', '') isnot# 's:get_hunks_changes'
|
\ get(b:, 'source_func', '') isnot# 's:get_hunks_changes' &&
|
||||||
|
\ get(b:, 'source_func', '') isnot# 's:get_hunks_coc'
|
||||||
return b:airline_hunks
|
return b:airline_hunks
|
||||||
endif
|
endif
|
||||||
let hunks = airline#extensions#hunks#get_raw_hunks()
|
let hunks = airline#extensions#hunks#get_raw_hunks()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user