summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 0ed1360f..9d2f62c1 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -12,12 +12,14 @@ let g:loaded_ale = 1
" A flag for detecting if the required features are set.
if has('nvim')
- let s:ale_has_required_features = has('timers')
+ let s:has_features = has('timers')
else
- let s:ale_has_required_features = has('timers') && has('job') && has('channel')
+ " Check if Job and Channel functions are available, instead of the
+ " features. This works better on old MacVim versions.
+ let s:has_features = has('timers') && exists('*job_start') && exists('*ch_close_in')
endif
-if !s:ale_has_required_features
+if !s:has_features
echoerr 'ALE requires NeoVim >= 0.1.5 or Vim 8 with +timers +job +channel'
echoerr 'Please update your editor appropriately.'
finish