Improve update logic after ale finished

Previously the ale refresh was triggered after user interactions only.
When linting takes some time and the user is not actively working the
ale information was not updated while the things ale directly controls
were updated. This change makes showing linting results a loot smoother.
This commit is contained in:
Lars Michelsen 2018-10-14 20:15:03 +02:00
parent f045452743
commit 3f34ff56b8
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ function! airline#extensions#ale#init(ext)
augroup airline_ale
autocmd!
autocmd CursorHold,BufWritePost * call <sid>ale_refresh()
autocmd User ALEJobStarted,ALELintPost call <sid>ale_refresh()
augroup END
endfunction