summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-13 23:48:36 +0000
committerw0rp <devw0rp@gmail.com>2017-02-13 23:48:36 +0000
commit810e420510fb61741e033dcea726cfba6b8cbf67 (patch)
tree0e21d4b096a45a8645ba29b1e0b739a8977f8599 /plugin/ale.vim
parentf39e88cfa8d81d54e65ae05678fbfb735f793828 (diff)
downloadale-810e420510fb61741e033dcea726cfba6b8cbf67.zip
#274 Don't emit the warning if ALE isn't working for git commits or blank files
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim9
1 files 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