summaryrefslogtreecommitdiffstatshomepage
path: root/runtime
diff options
context:
space:
mode:
authorMichael Henry <drmikehenry@drmikehenry.com>2025-08-31 14:17:21 -0400
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2025-08-31 18:51:33 +0000
commitedfb447ff883c2833b56828bbdc11435299021ae (patch)
treebe58571422d072819515bf9a1ebbe552cfb88454 /runtime
parentb032c2b53ff83a0c0cc32e89ca961ad83616ec82 (diff)
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`. (cherry picked from commit f311c96973a561ba5e664f46e758a97fd10acdcb)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/lua/vim/provider/health.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/lua/vim/provider/health.lua b/runtime/lua/vim/provider/health.lua
index e4b5206fa4..a0c4ac0626 100644
--- a/runtime/lua/vim/provider/health.lua
+++ b/runtime/lua/vim/provider/health.lua
@@ -724,10 +724,9 @@ local function python()
local message = 'Detected pip upgrade failure: Python executable can import "pynvim" but not "neovim": '
.. pynvim_exe
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 install pynvim',
- pynvim_exe .. ' -m pip install neovim # only if needed by third-party software',
+ 'Then see :help provider-python for "pynvim" installation steps.',
}
health.error(message, advice)
end
@@ -753,7 +752,7 @@ local function python()
if is_bad_response(current) then
health.error(
'pynvim is not installed.\nError: ' .. current,
- 'Run in shell: ' .. python_exe .. ' -m pip install pynvim'
+ 'See :help provider-python for "pynvim" installation steps.'
)
end