diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 0704fd5b..e1c41552 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -586,6 +586,8 @@ function! s:RunJob(options) abort \ 'output': [], \ 'next_chain_index': l:next_chain_index, \} + + silent doautocmd User ALEJobStarted endif if g:ale_history_enabled diff --git a/doc/ale.txt b/doc/ale.txt index de6507e3..d52e8fe9 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -2452,7 +2452,14 @@ ALEFixPost *ALEFixPost-autocmd* autocmd User ALELintPre let s:ale_running = 1 | redrawstatus autocmd User ALELintPost let s:ale_running = 0 | redrawstatus augroup end + < +ALEJobStarted *ALEJobStarted-autocmd* + + This |User| autocommand is triggered immediately after a job is successfully + run. This provides better accuracy for checking linter status with + |ale#engine#IsCheckingBuffer()| over |ALELintPre|, which is actually + triggered before any linters are executed. =============================================================================== 10. Special Thanks *ale-special-thanks*