mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Merge pull request #1928 from felipesere/master
To avoid blocking build tools, suspend ALE when suspending vim
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user