also set cwd for launch.json configs

This commit is contained in:
Oliver Hartmann 2022-11-03 20:32:16 +01:00
parent c8bbbe4057
commit 66477e10a0

View File

@ -29,6 +29,7 @@ local function loadConfigs ()
-- Make sure we use the correct python env even for the configs from launch.json -- Make sure we use the correct python env even for the configs from launch.json
for nr,config in pairs(dap.configurations.python) do for nr,config in pairs(dap.configurations.python) do
config.pythonPath = getPythonEnv() config.pythonPath = getPythonEnv()
config.cwd = vim.fn.getcwd()
end end
require'telescope'.extensions.dap.configurations{} require'telescope'.extensions.dap.configurations{}
end end