From 03973c0d0998dae638c26ed5be0cea6256ee38d6 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 4 Aug 2018 07:52:22 +0100 Subject: [PATCH] Explicitly disable ALE for NeoVim versions below 0.2.0 --- plugin/ale.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/ale.vim b/plugin/ale.vim index f0f90b6b..ffb5da8a 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -14,7 +14,7 @@ let g:loaded_ale_dont_use_this_in_other_plugins_please = 1 " A flag for detecting if the required features are set. if has('nvim') - let s:has_features = has('timers') + let s:has_features = has('timers') && has('nvim-0.2.0') else " Check if Job and Channel functions are available, instead of the " features. This works better on old MacVim versions. @@ -24,7 +24,7 @@ endif if !s:has_features " Only output a warning if editing some special files. if index(['', 'gitcommit'], &filetype) == -1 - execute 'echoerr ''ALE requires NeoVim >= 0.1.5 or Vim 8 with +timers +job +channel''' + execute 'echoerr ''ALE requires NeoVim >= 0.2.0 or Vim 8 with +timers +job +channel''' execute 'echoerr ''Please update your editor appropriately.''' endif