From 39e554544247a874f5a6f14d238101c5fa1dbc87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Mon, 13 Mar 2023 03:52:41 +0100 Subject: [PATCH] Fall back to old launch.json loading format --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 5f888c4..6be9796 100644 --- a/init.lua +++ b/init.lua @@ -180,8 +180,14 @@ local config = { -- Debugger mappings ["d"] = { name = "Debugger" }, + ["dl"] = { name = "Load launch.json" }, + -- Config loading + ["dlc"] = { function() require("dap.ext.vscode").load_launchjs(nil, { cppdbg = { "c", "cpp", "asm" } }) end, desc = + "C/C++/asm" }, + ["dle"] = { function() require("dap.ext.vscode").load_launchjs(nil, { node2 = { "javascriptreact", "typescriptreact", "typescript", "javascript" }}) end, desc = + "Node" }, -- Load launch.json for all supported languages - ["dl"] = { function() require("dap.ext.vscode").load_launchjs(nil, nil) end, desc = "Load launch.json" }, + ["dla"] = { function() require("dap.ext.vscode").load_launchjs(nil, nil) end, desc = "All" }, -- Function keys mappings [""] = { function() require("dap").continue() end, desc = "Debugger: Start" }, [""] = { function() require("dap").terminate() end, desc = "Debugger: Stop" }, -- Shift+F5