mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-07 04:34:34 +08:00
To avoid blocking build tools, suspend ALE when suspending vim
This commit is contained in:
1 parent
0948dcc435
commit
fba4cfeae9
3 files changed
+23
-17
No files matched your search
@@ -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