mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 18:31:02 +08: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
|
||||
let b:source_func = 's:get_hunks_empty'
|
||||
endif
|
||||
else
|
||||
let b:source_func = 's:get_hunks_empty'
|
||||
endif
|
||||
return {b:source_func}()
|
||||
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_gitgutter' &&
|
||||
\ 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
|
||||
endif
|
||||
let hunks = airline#extensions#hunks#get_raw_hunks()
|
||||
|
|
Loading…
Reference in New Issue
Block a user