mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-13 08:08:54 +08:00
Check LanguageClient-neovim's status before getting diagnostics
This commit is contained in:
1 parent
5f2421fa39
commit
bd5ae9c584
1 file changed
+4
@@ -66,6 +66,10 @@ function! s:airline_languageclient_get_line_number(type) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#languageclient#get(type)
|
function! airline#extensions#languageclient#get(type)
|
||||||
|
if get(b:, 'LanguageClient_isServerRunning', 0) ==# 0
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
|
|
||||||
let is_err = a:type == s:severity_error
|
let is_err = a:type == s:severity_error
|
||||||
let symbol = is_err ? s:error_symbol : s:warning_symbol
|
let symbol = is_err ? s:error_symbol : s:warning_symbol
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user