aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-16 00:16:50 +0800
committerGitHub <noreply@github.com>2023-04-16 00:16:50 +0800
commit8c6f97bef89da6ad8bde8f935d9983f25b5c59bd (patch)
treeb6f57b764e82bc7e636e5514c759d28a37fb440b
parent2e2101cf7b0e4a70f5670d9d1317860a47bb8385 (diff)
downloadrneovim-8c6f97bef89da6ad8bde8f935d9983f25b5c59bd.tar.gz
rneovim-8c6f97bef89da6ad8bde8f935d9983f25b5c59bd.tar.bz2
rneovim-8c6f97bef89da6ad8bde8f935d9983f25b5c59bd.zip
fix(health): properly use the value of $PYENV_VERSION (#23109)
-rw-r--r--runtime/lua/provider/health.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/provider/health.lua b/runtime/lua/provider/health.lua
index a5fe14732c..de0729ab6b 100644
--- a/runtime/lua/provider/health.lua
+++ b/runtime/lua/provider/health.lua
@@ -196,7 +196,7 @@ local function check_for_pyenv()
info('pyenv: Path: ' .. pyenv_path)
- local pyenv_root = os.getenv('PYENV_ROOT') and vim.fn.resolve('$PYENV_ROOT') or ''
+ local pyenv_root = os.getenv('PYENV_ROOT') and vim.fn.resolve(os.getenv('PYENV_ROOT')) or ''
if is_blank(pyenv_root) then
pyenv_root = vim.trim(system({ pyenv_path, 'root' }))