From 66477e10a02ef61a2528acdca3c27fd764de4253 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Thu, 3 Nov 2022 20:32:16 +0100 Subject: [PATCH] also set cwd for launch.json configs --- lua/setup/my_dap.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/setup/my_dap.lua b/lua/setup/my_dap.lua index 470ef5c..19a3df8 100644 --- a/lua/setup/my_dap.lua +++ b/lua/setup/my_dap.lua @@ -29,6 +29,7 @@ local function loadConfigs () -- Make sure we use the correct python env even for the configs from launch.json for nr,config in pairs(dap.configurations.python) do config.pythonPath = getPythonEnv() + config.cwd = vim.fn.getcwd() end require'telescope'.extensions.dap.configurations{} end