diff --git a/README.md b/README.md index 28091f1..b6953aa 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,