#274 Don't emit the warning if ALE isn't working for git commits or blank files

This commit is contained in:
w0rp 2017-02-13 23:48:36 +00:00
parent f39e88cfa8
commit 810e420510
1 changed files with 7 additions and 2 deletions

View File

@ -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