diff --git a/autoload/airline/extensions/coc.vim b/autoload/airline/extensions/coc.vim index 886787c6..943e5bcf 100644 --- a/autoload/airline/extensions/coc.vim +++ b/autoload/airline/extensions/coc.vim @@ -21,19 +21,11 @@ function! airline#extensions#coc#get(type) abort endif let _backup = get(g:, 'coc_stl_format', '') let is_err = (a:type is# 'error') - if is_err - let g:coc_stl_format = get(g:, 'airline#extensions#coc#stl_format_err', '%E{[%e(#%fe)]}') - else - let g:coc_stl_format = get(g:, 'airline#extensions#coc#stl_format_warn', '%W{[%w(#%fw)]}') - endif let info = get(b:, 'coc_diagnostic_info', {}) if empty(info) | return '' | endif let cnt = get(info, a:type, 0) - if !empty(_backup) - let g:coc_stl_format = _backup - endif if empty(cnt) return '' diff --git a/doc/airline.txt b/doc/airline.txt index 787153fd..ce1453f4 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -636,12 +636,6 @@ coc * change warning symbol: > let airline#extensions#coc#warning_symbol = 'W:' < -* change error format: > - let airline#extensions#coc#stl_format_err = '%E{[%e(#%fe)]}' -< -* change warning format: > - let airline#extensions#coc#stl_format_warn = '%W{[%w(#%fw)]}' - ------------------------------------- *airline-commandt* command-t