#274 Don't emit the warning if ALE isn't working for git commits or blank files
This commit is contained in:
parent
f39e88cfa8
commit
810e420510
@ -20,8 +20,13 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if !s:has_features
|
if !s:has_features
|
||||||
echoerr 'ALE requires NeoVim >= 0.1.5 or Vim 8 with +timers +job +channel'
|
" Only output a warning if editing some special files.
|
||||||
echoerr 'Please update your editor appropriately.'
|
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
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user