mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-08 04:54:44 +08:00
[hunks] also cache coc git status
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user