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