summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorFelipe Sere <felipesere@gmail.com>2018-09-16 15:57:13 +0100
committerFelipe Sere <felipesere@gmail.com>2018-09-16 15:57:13 +0100
commitfba4cfeae91e6cdb0c1079f7a3807ac328d35087 (patch)
treea4c704127f0a335514f62ae7673ba780c97ce37a /plugin
parent0948dcc435201f0ea62a22c53ce31971a75cba35 (diff)
downloadale-fba4cfeae91e6cdb0c1079f7a3807ac328d35087.zip
To avoid blocking build tools, suspend ALE when suspending vim
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index ffb5da8a..46b3bba6 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -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
+