mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Update minimum supported NeoVim version to 0.6.0
Stop officially supporting NeoVim versions below 0.6.0, without necessarily breaking ALE for people using older versions.
This commit is contained in:
@@ -14,6 +14,7 @@ let g:loaded_ale_dont_use_this_in_other_plugins_please = 1
|
||||
|
||||
" A flag for detecting if the required features are set.
|
||||
if has('nvim')
|
||||
" We check for NeoVim 0.2.0+, but we only officially support NeoVim 0.6.0
|
||||
let s:has_features = has('timers') && has('nvim-0.2.0')
|
||||
else
|
||||
" Check if Job and Channel functions are available, instead of the
|
||||
@@ -25,7 +26,7 @@ if !s:has_features
|
||||
" Only output a warning if editing some special files.
|
||||
if index(['', 'gitcommit'], &filetype) == -1
|
||||
" no-custom-checks
|
||||
echoerr 'ALE requires NeoVim >= 0.2.0 or Vim 8 with +timers +job +channel'
|
||||
echoerr 'ALE requires NeoVim >= 0.6.0 or Vim 8 with +timers +job +channel'
|
||||
" no-custom-checks
|
||||
echoerr 'Please update your editor appropriately.'
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user