coc: add in coc_status to coc.nvim integration

Allow to show additional messages from coc.nvim in section_c

For ease of use, shorten the message for windows smaller than 81
characters.

closes #2079
This commit is contained in:
ckipp01
2020-02-28 00:06:00 +01:00
committed by Christian Brabandt
parent fdafa44b2f
commit fe94d52c4c
3 changed files with 19 additions and 8 deletions

View File

@@ -29,8 +29,8 @@ describe 'init sections'
Expect g:airline_section_b == ''
end
it 'section c should be file'
Expect g:airline_section_c == '%<%f%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#'
it 'section c should be file and coc_status'
Expect g:airline_section_c == '%<%f%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#%#__accent_airline_term#%#__restore__#'
end
it 'section x should be filetype'
@@ -78,6 +78,7 @@ describe 'init sections'
Expect airline#parts#get('ycm_warning_count').raw == ''
Expect airline#parts#get('languageclient_error_count').raw == ''
Expect airline#parts#get('languageclient_warning_count').raw == ''
Expect airline#parts#get('coc_status').raw == ''
end
end