From 810e420510fb61741e033dcea726cfba6b8cbf67 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 13 Feb 2017 23:48:36 +0000 Subject: [PATCH] #274 Don't emit the warning if ALE isn't working for git commits or blank files --- plugin/ale.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugin/ale.vim b/plugin/ale.vim index 5f265c07..b8718076 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -20,8 +20,13 @@ else endif if !s:has_features - echoerr 'ALE requires NeoVim >= 0.1.5 or Vim 8 with +timers +job +channel' - echoerr 'Please update your editor appropriately.' + " Only output a warning if editing some special files. + if index(['', 'gitcommit'], &filetype) == -1 + echoerr 'ALE requires NeoVim >= 0.1.5 or Vim 8 with +timers +job +channel' + echoerr 'Please update your editor appropriately.' + endif + + " Stop here, as it won't work. finish endif