From d7939cf47482feec26e87f6827721f7515191f4d Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Sun, 5 Jan 2025 11:04:28 +0100 Subject: [PATCH] docs(dap): fix error --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 28091f10..b6953aa5 100644 --- a/README.md +++ b/README.md @@ -291,17 +291,18 @@ return { "fredrikaverpil/neotest-golang", -- Installation }, config = function() ++ local options = { ++ dap_mode = "manual", ++ dap_manual_config = { ++ name = "Debug go tests", ++ type = "go", -- Preconfigured DAP adapter name ++ request = "launch", ++ mode = "test", ++ }, ++ } require("neotest").setup({ adapters = { -+ require("neotest-golang") { -- Registration -+ dap_mode = "manual", -+ dap_manual_config = { -+ name = "Debug go tests", -+ type = "go", -- Preconfigured DAP adapter name -+ request = "launch", -+ mode = "test", -+ } -+ }, ++ require("neotest-golang")(options) -- Registration }, }) end,