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