diff --git a/lua/setup/my_dap.lua b/lua/setup/my_dap.lua index f8373d0..753bd2f 100644 --- a/lua/setup/my_dap.lua +++ b/lua/setup/my_dap.lua @@ -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