From fba4cfeae91e6cdb0c1079f7a3807ac328d35087 Mon Sep 17 00:00:00 2001 From: Felipe Sere Date: Sun, 16 Sep 2018 15:57:13 +0100 Subject: To avoid blocking build tools, suspend ALE when suspending vim --- plugin/ale.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin') 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(''))) | endif autocmd QuitPre * call ale#events#QuitEvent(str2nr(expand(''))) augroup END + +if exists('##VimSuspend') + autocmd VimSuspend * call ale#engine#CleanupEveryBuffer() +end + -- cgit v1.2.3