From 8c6f97bef89da6ad8bde8f935d9983f25b5c59bd Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 16 Apr 2023 00:16:50 +0800 Subject: [PATCH] fix(health): properly use the value of $PYENV_VERSION (#23109) --- runtime/lua/provider/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' }))