mirror of
https://github.com/amix/vimrc
synced 2025-07-27 23:45:00 +08:00
Change Rainbow-parenthese plugin into Rainbow plugin.
This commit is contained in:
@ -16,8 +16,8 @@ endfunction
|
||||
|
||||
function! s:checkEnvironment() abort
|
||||
let valid
|
||||
\ = s:checkVim(has('nvim'), 'nvim', 'nvim-0.3.2')
|
||||
\ + s:checkVim(!has('nvim'), 'vim', 'patch-0.8.1453')
|
||||
\ = s:checkVim(has('nvim'), 'nvim', 'nvim-0.4.0')
|
||||
\ + s:checkVim(!has('nvim'), 'vim', 'patch-8.1.1719')
|
||||
let node = get(g:, 'coc_node_path', $COC_NODE_PATH == '' ? 'node' : $COC_NODE_PATH)
|
||||
if !executable(node)
|
||||
let valid = 0
|
||||
@ -32,9 +32,9 @@ function! s:checkEnvironment() abort
|
||||
if empty(ms)
|
||||
let valid = 0
|
||||
call health#report_error('Unable to detect version of node, make sure your node executable is http://nodejs.org/')
|
||||
elseif str2nr(ms[1]) < 12 || (str2nr(ms[1]) == 12 && str2nr(ms[2]) < 12)
|
||||
elseif str2nr(ms[1]) < 14 || (str2nr(ms[1]) == 14 && str2nr(ms[2]) < 14)
|
||||
let valid = 0
|
||||
call health#report_warn('Node.js version '.trim(output).' < 12.12.0, please upgrade node.js')
|
||||
call health#report_warn('Node.js version '.trim(output).' < 14.14.0, please upgrade node.js')
|
||||
endif
|
||||
if valid
|
||||
call health#report_ok('Environment check passed')
|
||||
|
Reference in New Issue
Block a user