From de20bf7427d701d22e837763fa211fc726e63f23 Mon Sep 17 00:00:00 2001 From: SamPosh Date: Wed, 12 Apr 2023 16:43:38 +0530 Subject: [PATCH] Update debug.lua --- lua/kickstart/plugins/debug.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 78f3ae56..bf042f42 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -82,7 +82,15 @@ return { dap.listeners.before.event_exited['dapui_config'] = dapui.close -- Install python specific config - require('dap-python').setup() -- Debug with default settings. + require('dap-python').setup() -- Debug with default settings. + -- We can set the config by below mechanism as well + table.insert(require('dap').configurations.python, { + type = 'python', + request = 'launch', + name = 'My custom launch configuration', + program = '${file}', + cwd = '${fileDirName}' + }) end, }