add support for conda

This commit is contained in:
Oliver Hartmann 2022-11-03 20:26:29 +01:00
parent a64aeb9dd6
commit 56797a2564

View File

@ -47,6 +47,10 @@ local function getPythonEnv()
if venv ~= nil then
return string.format("%s/%s", venv, getVenvSuffix())
end
local conda = os.getenv("CONDA_PREFIX")
if conda ~= nil then
return string.format("%s/%s", conda, 'python.exe')
end
local cwd = vim.fn.getcwd()
if vim.fn.executable(cwd .. '/venv/' .. getVenvSuffix()) == 1 then