From d8716c9574a316a98258b2b4d726a5332cf25b6d Mon Sep 17 00:00:00 2001 From: LeoBarreiro Date: Fri, 26 Jul 2024 22:30:53 -0300 Subject: [PATCH] Add DapDisconnect command --- plugin/dap.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/dap.lua b/plugin/dap.lua index 7694faa2..81bab23e 100644 --- a/plugin/dap.lua +++ b/plugin/dap.lua @@ -23,6 +23,7 @@ cmd('DapStepOver', function() require('dap').step_over() end, { nargs = 0 }) cmd('DapStepInto', function() require('dap').step_into() end, { nargs = 0 }) cmd('DapStepOut', function() require('dap').step_out() end, { nargs = 0 }) cmd('DapTerminate', function() require('dap').terminate() end, { nargs = 0 }) +cmd('DapDisconnect', function() require('dap').disconnect({ terminateDebuggee = false }) end, { nargs = 0 }) cmd('DapLoadLaunchJSON', function() require('dap.ext.vscode').load_launchjs() end, { nargs = 0 }) cmd('DapRestartFrame', function() require('dap').restart_frame() end, { nargs = 0 })