Merge pull request #1928 from felipesere/master

To avoid blocking build tools, suspend ALE when suspending vim
This commit is contained in:
w0rp
2018-09-18 17:46:45 +01:00
committed by GitHub
4 changed files with 35 additions and 21 deletions

View File

@@ -224,4 +224,8 @@ augroup ALECleanupGroup
" Clean up buffers automatically when they are unloaded.
autocmd BufDelete * if exists('*ale#engine#Cleanup') | call ale#engine#Cleanup(str2nr(expand('<abuf>'))) | endif
autocmd QuitPre * call ale#events#QuitEvent(str2nr(expand('<abuf>')))
if exists('##VimSuspend')
autocmd VimSuspend * if exists('*ale#engine#CleanupEveryBuffer') | call ale#engine#CleanupEveryBuffer() | endif
endif
augroup END