mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-09 21:46:39 +08:00
autocommands: check for existence of airline highlight group
Several extensions trigger custom actions. Make sure, those actions are only performed, if airline is actually active and not temporarily disabled using e.g. :AirlineToggle
This commit is contained in:
@@ -35,6 +35,10 @@ function! s:record_diagnostics(state)
|
||||
endfunction
|
||||
|
||||
function! s:get_diagnostics()
|
||||
if !exists('#airline')
|
||||
" airline disabled
|
||||
return
|
||||
endif
|
||||
call LanguageClient#getState(function("s:record_diagnostics"))
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user