Search code examples
vimvim-plugin

Checking whether ALE has finished running a linter


What Vim function can I call to determine whether ALE has finished running its linters yet? I want to update my statusline to show a "loading" message while they run, and hide the message when the linters are done.


Solution

  • You're looking for ale#engine#IsCheckingBuffer(buffer); the help explicitly mentions that This function can be used for status lines, tab names, etc.