To avoid blocking build tools, suspend ALE when suspending vim

This commit is contained in:
Felipe Sere
2018-09-16 15:57:13 +01:00
parent 0948dcc435
commit fba4cfeae9
3 changed files with 23 additions and 17 deletions

View File

@@ -218,3 +218,8 @@ augroup ALECleanupGroup
autocmd BufDelete * if exists('*ale#engine#Cleanup') | call ale#engine#Cleanup(str2nr(expand('<abuf>'))) | endif
autocmd QuitPre * call ale#events#QuitEvent(str2nr(expand('<abuf>')))
augroup END
if exists('##VimSuspend')
autocmd VimSuspend * call ale#engine#CleanupEveryBuffer()
end