Skip to content

Commit

Permalink
docs(dap): fix error (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil authored Jan 5, 2025
1 parent 74be9b4 commit 8aa4d82
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8aa4d82

Please sign in to comment.