From a3e88edfbf03960375026673281148caeb1469af Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Fri, 28 Jun 2019 01:23:34 +0300 Subject: [PATCH] [nvim] fix coc statusline --- nvim/lib/interface.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nvim/lib/interface.vim b/nvim/lib/interface.vim index 3a4d832..c78cf26 100644 --- a/nvim/lib/interface.vim +++ b/nvim/lib/interface.vim @@ -107,6 +107,8 @@ endif let g:airline#extensions#tabline#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') 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) endfunction function s:tweak_airline() - " if exists('*coc#status') - " call s:airline_section_prepend('x', ['coc#status']) - " endif + if exists('*coc#status') + call s:airline_section_prepend('x', ['coc#status']) + endif call s:airline_section_append('y', ['filesize']) if exists('*airline#extensions#coc#get_error') call s:airline_section_prepend('error', ['coc_error_count'])