From 3f34ff56b8fab56998493aba6c4e0099e4ee1bc0 Mon Sep 17 00:00:00 2001 From: Lars Michelsen Date: Sun, 14 Oct 2018 20:15:03 +0200 Subject: [PATCH] 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. --- autoload/airline/extensions/ale.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/airline/extensions/ale.vim b/autoload/airline/extensions/ale.vim index c0419b2..ec85076 100644 --- a/autoload/airline/extensions/ale.vim +++ b/autoload/airline/extensions/ale.vim @@ -74,6 +74,7 @@ function! airline#extensions#ale#init(ext) augroup airline_ale autocmd! autocmd CursorHold,BufWritePost * call ale_refresh() + autocmd User ALEJobStarted,ALELintPost call ale_refresh() augroup END endfunction