mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix(health): update advice for Python #35564
Problem: `:checkhealth` advice for Python is out-of-date. Solution: Update the advice to point to `:help provider-python`.
This commit is contained in:
@@ -732,10 +732,9 @@ local function python()
|
|||||||
local message = 'Detected pip upgrade failure: Python executable can import "pynvim" but not "neovim": '
|
local message = 'Detected pip upgrade failure: Python executable can import "pynvim" but not "neovim": '
|
||||||
.. pynvim_exe
|
.. pynvim_exe
|
||||||
local advice = {
|
local advice = {
|
||||||
'Use that Python version to reinstall "pynvim" and optionally "neovim".',
|
'Use that Python version to uninstall any "pynvim" or "neovim", e.g.:',
|
||||||
pynvim_exe .. ' -m pip uninstall pynvim neovim',
|
pynvim_exe .. ' -m pip uninstall pynvim neovim',
|
||||||
pynvim_exe .. ' -m pip install pynvim',
|
'Then see :help provider-python for "pynvim" installation steps.',
|
||||||
pynvim_exe .. ' -m pip install neovim # only if needed by third-party software',
|
|
||||||
}
|
}
|
||||||
health.error(message, advice)
|
health.error(message, advice)
|
||||||
end
|
end
|
||||||
@@ -761,7 +760,7 @@ local function python()
|
|||||||
if is_bad_response(current) then
|
if is_bad_response(current) then
|
||||||
health.error(
|
health.error(
|
||||||
'pynvim is not installed.\nError: ' .. current,
|
'pynvim is not installed.\nError: ' .. current,
|
||||||
'Run in shell: ' .. python_exe .. ' -m pip install pynvim'
|
'See :help provider-python for "pynvim" installation steps.'
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user