mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-02 01:23:21 +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
@@ -161,6 +161,10 @@ function! airline#init#bootstrap()
|
||||
call airline#parts#define('branch', {
|
||||
\ 'raw': '',
|
||||
\ 'minwidth': 80})
|
||||
call airline#parts#define('coc_status', {
|
||||
\ 'raw': '',
|
||||
\ 'accent': 'airline_term'
|
||||
\ })
|
||||
call airline#parts#define_empty(['obsession', 'tagbar', 'syntastic-warn',
|
||||
\ 'syntastic-err', 'eclim', 'whitespace','windowswap',
|
||||
\ 'ycm_error_count', 'ycm_warning_count', 'neomake_error_count',
|
||||
@@ -194,7 +198,7 @@ function! airline#init#sections()
|
||||
if exists("+autochdir") && &autochdir == 1
|
||||
let g:airline_section_c = airline#section#create(['%<', 'path', spc, 'readonly'])
|
||||
else
|
||||
let g:airline_section_c = airline#section#create(['%<', 'file', spc, 'readonly'])
|
||||
let g:airline_section_c = airline#section#create(['%<', 'file', spc, 'readonly', 'coc_status'])
|
||||
endif
|
||||
endif
|
||||
if !exists('g:airline_section_gutter')
|
||||
|
||||
Reference in New Issue
Block a user