mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-05 09:27:36 +08:00
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:
committed by
Christian Brabandt
parent
fdafa44b2f
commit
fe94d52c4c
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user