aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/provider/python
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-29 09:43:49 -0800
committerGitHub <noreply@github.com>2024-01-29 09:43:49 -0800
commita060c13f55b775b2fafc741a571bb764e804d9db (patch)
treeff2d9478a9a4f0284ddcf98fbc037be3cbb4fe19 /runtime/lua/provider/python
parent758504ec739b70c4e2f192feb106f101024bc862 (diff)
parente39b6d0c52410b59ad75312659ab278da42e42c6 (diff)
downloadrneovim-a060c13f55b775b2fafc741a571bb764e804d9db.tar.gz
rneovim-a060c13f55b775b2fafc741a571bb764e804d9db.tar.bz2
rneovim-a060c13f55b775b2fafc741a571bb764e804d9db.zip
Merge #27246 from justinmk/health
Diffstat (limited to 'runtime/lua/provider/python')
-rw-r--r--runtime/lua/provider/python/health.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/provider/python/health.lua b/runtime/lua/provider/python/health.lua
index 825fddc917..8f77f1d4ba 100644
--- a/runtime/lua/provider/python/health.lua
+++ b/runtime/lua/provider/python/health.lua
@@ -255,7 +255,7 @@ function M.check()
'See :help provider-python for more information.',
'You may disable this provider (and warning) by adding `let g:loaded_python3_provider = 0` to your init.vim',
})
- elseif pyname ~= '' and python_exe == '' then
+ elseif pyname and pyname ~= '' and python_exe == '' then
if not vim.g[host_prog_var] then
local message = string.format(
'`g:%s` is not set. Searching for %s in the environment.',
@@ -343,7 +343,7 @@ function M.check()
end
end
- if python_exe == '' and pyname ~= '' then
+ if pyname and python_exe == '' and pyname ~= '' then
-- An error message should have already printed.
health.error('`' .. pyname .. '` was not found.')
elseif python_exe ~= '' and not check_bin(python_exe) then