From 49e5fa571005da10d156d14f82e145afaf96214e Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Fri, 16 May 2025 22:33:54 +0300 Subject: =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/lua/plugins/dap.lua | 118 ++++------------------------------------------- 1 file changed, 9 insertions(+), 109 deletions(-) (limited to 'nvim/lua/plugins/dap.lua') diff --git a/nvim/lua/plugins/dap.lua b/nvim/lua/plugins/dap.lua index 58cc7f9..da87df9 100644 --- a/nvim/lua/plugins/dap.lua +++ b/nvim/lua/plugins/dap.lua @@ -21,59 +21,8 @@ local function setup_go_configuration(dap, configs) type = "go", name = "Debug", request = "launch", - program = "${file}", - buildFlags = configs.delve.build_flags, - outputMode = configs.delve.output_mode, - }, - { - type = "go", - name = "Debug (Arguments)", - request = "launch", - program = "${file}", - args = get_arguments, - buildFlags = configs.delve.build_flags, - outputMode = configs.delve.output_mode, - }, - { - type = "go", - name = "Debug (Arguments & Build Flags)", - request = "launch", - program = "${file}", - args = get_arguments, - buildFlags = get_build_flags, - outputMode = configs.delve.output_mode, - }, - { - type = "go", - name = "Debug Package", - request = "launch", - program = "${fileDirname}", - buildFlags = configs.delve.build_flags, - outputMode = configs.delve.output_mode, - }, - { - type = "go", - name = "Attach", - mode = "local", - request = "attach", - processId = filtered_pick_process, - buildFlags = configs.delve.build_flags, - }, - { - type = "go", - name = "Debug test", - request = "launch", - mode = "test", - program = "${file}", - buildFlags = configs.delve.build_flags, - outputMode = configs.delve.output_mode, - }, - { - type = "go", - name = "Debug test (go.mod)", - request = "launch", - mode = "test", - program = "./${relativeFileDirname}", + program = "${workspaceFolder}", + args = {}, buildFlags = configs.delve.build_flags, outputMode = configs.delve.output_mode, }, @@ -164,61 +113,40 @@ return { silent = true, }, { - "", + "", -- S-F5 function() - require("dap").step_over() + require("dap").restart() end, silent = true, }, { - "", + "", -- C-F5 function() - require("dap").step_into() + require("dap").terminate() end, silent = true, }, { - "", - function() - require("dap").step_out() - end, - silent = true, - }, - { - "dc", - function() - require("dap").continue() - end, - silent = true, - }, - { - "so", + "", function() require("dap").step_over() end, silent = true, }, { - "si", + "", function() require("dap").step_into() end, silent = true, }, { - "st", + "", -- S-F7 function() require("dap").step_out() end, silent = true, }, - { - "b", - function() - require("dap").toggle_breakpoint() - end, - silent = true, - }, { "", function() @@ -226,33 +154,5 @@ return { end, silent = true, }, - { - "B", - function() - require("dap").set_breakpoint() - end, - silent = true, - }, - { - "lp", - function() - require("dap").set_breakpoint(nil, nil, vim.fn.input("Log point message: ")) - end, - silent = true, - }, - { - "dr", - function() - require("dap").repl.open() - end, - silent = true, - }, - { - "dl", - function() - require("dap").run_last() - end, - silent = true, - }, }, } -- cgit v1.2.3