mirror of
https://github.com/neovim/neovim
synced 2025-07-17 17:51:48 +00:00
checkhealth: skip python checks if intentionally disabled #11044
close #11040
This commit is contained in:
committed by
Justin M. Keyes
parent
ad0f97f412
commit
45447e3b64
@ -276,7 +276,11 @@ function! s:check_python(version) abort
|
|||||||
let python_multiple = []
|
let python_multiple = []
|
||||||
|
|
||||||
if exists(loaded_var) && !exists('*provider#'.pyname.'#Call')
|
if exists(loaded_var) && !exists('*provider#'.pyname.'#Call')
|
||||||
call health#report_info('Disabled ('.loaded_var.'='.eval(loaded_var).'). This might be due to some previous error.')
|
let v = eval(loaded_var)
|
||||||
|
call health#report_info('Disabled ('.loaded_var.'='.v.').'.(0 is v ? '' : ' This might be due to some previous error.'))
|
||||||
|
if 0 is v
|
||||||
|
return
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let [pyenv, pyenv_root] = s:check_for_pyenv()
|
let [pyenv, pyenv_root] = s:check_for_pyenv()
|
||||||
|
Reference in New Issue
Block a user