mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] fix coc statusline
This commit is contained in:
parent
d6bca71392
commit
a3e88edfbf
1 changed files with 5 additions and 3 deletions
|
@ -107,6 +107,8 @@ endif
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
let g:airline#extensions#ale#enabled = 1
|
let g:airline#extensions#ale#enabled = 1
|
||||||
|
|
||||||
|
let g:coc_status_error_sign = 'E:'
|
||||||
|
let g:coc_status_warning_sign = 'W:'
|
||||||
call airline#parts#define_function('coc#status', 'coc#status')
|
call airline#parts#define_function('coc#status', 'coc#status')
|
||||||
|
|
||||||
function StatusLine_filesize()
|
function StatusLine_filesize()
|
||||||
|
@ -134,9 +136,9 @@ endif
|
||||||
let g:airline_section_{a:section} = g:airline_section_{a:section} . airline#section#create_left([''] + a:items)
|
let g:airline_section_{a:section} = g:airline_section_{a:section} . airline#section#create_left([''] + a:items)
|
||||||
endfunction
|
endfunction
|
||||||
function s:tweak_airline()
|
function s:tweak_airline()
|
||||||
" if exists('*coc#status')
|
if exists('*coc#status')
|
||||||
" call s:airline_section_prepend('x', ['coc#status'])
|
call s:airline_section_prepend('x', ['coc#status'])
|
||||||
" endif
|
endif
|
||||||
call s:airline_section_append('y', ['filesize'])
|
call s:airline_section_append('y', ['filesize'])
|
||||||
if exists('*airline#extensions#coc#get_error')
|
if exists('*airline#extensions#coc#get_error')
|
||||||
call s:airline_section_prepend('error', ['coc_error_count'])
|
call s:airline_section_prepend('error', ['coc_error_count'])
|
||||||
|
|
Loading…
Reference in a new issue