nvim: Fix correct workspace propagation for python env

This commit is contained in:
Marty Oehme 2024-06-16 21:36:18 +02:00
parent b2c64a0925
commit ebee0042d8
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -38,7 +38,7 @@ function T.set_python_env(workspace)
if not base then if not base then
return return
end end
vim.g["python3_host_prog"] = vim.fn.expand(require("core.util").get_python_venv_bin()) vim.g["python3_host_prog"] = vim.fn.expand(require("core.util").get_python_venv_bin(workspace))
vim.env.PATH = base .. "/bin:" .. p vim.env.PATH = base .. "/bin:" .. p
end end
function T.get_python_venv_bin(workspace) function T.get_python_venv_bin(workspace)