add support for conda
This commit is contained in:
parent
a64aeb9dd6
commit
56797a2564
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user