mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-25 11:07:27 +08:00
#274 Don't emit the warning if ALE isn't working for git commits or blank files
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user