add support for conda
This commit is contained in:
parent
a64aeb9dd6
commit
56797a2564
@ -47,6 +47,10 @@ local function getPythonEnv()
|
|||||||
if venv ~= nil then
|
if venv ~= nil then
|
||||||
return string.format("%s/%s", venv, getVenvSuffix())
|
return string.format("%s/%s", venv, getVenvSuffix())
|
||||||
end
|
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()
|
local cwd = vim.fn.getcwd()
|
||||||
if vim.fn.executable(cwd .. '/venv/' .. getVenvSuffix()) == 1 then
|
if vim.fn.executable(cwd .. '/venv/' .. getVenvSuffix()) == 1 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user