From 4e1fd660780198f4dc9347609eb9ec74ed77cfef Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Fri, 8 Nov 2024 13:25:56 +0100 Subject: [PATCH] docs(dap): document `continue` to be used also for `run` (#4603) The `dap.continue` is meant to be used also to start the program if no debugging session is active. The documentation states: > `continue()` is the main entry-point for users to start debugging an application. With this change, it should be clearer to the user that `continue` is the way to start a program. Otherwise, one could think to use `Run with args` (which is misleading). At least for me, it was, until I read the dap documentation. ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. --- lua/lazyvim/plugins/extras/dap/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/dap/core.lua b/lua/lazyvim/plugins/extras/dap/core.lua index a605052c..2f2b6be3 100644 --- a/lua/lazyvim/plugins/extras/dap/core.lua +++ b/lua/lazyvim/plugins/extras/dap/core.lua @@ -36,7 +36,7 @@ return { { "d", "", desc = "+debug", mode = {"n", "v"} }, { "dB", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" }, { "db", function() require("dap").toggle_breakpoint() end, desc = "Toggle Breakpoint" }, - { "dc", function() require("dap").continue() end, desc = "Continue" }, + { "dc", function() require("dap").continue() end, desc = "Run/Continue" }, { "da", function() require("dap").continue({ before = get_args }) end, desc = "Run with Args" }, { "dC", function() require("dap").run_to_cursor() end, desc = "Run to Cursor" }, { "dg", function() require("dap").goto_() end, desc = "Go to Line (No Execute)" },