From b521556e440ec833a58d77beca94bacbcb4a754e Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Sat, 6 Jul 2024 11:18:03 +0200 Subject: [PATCH] docs: sync with my neotest setup (#102) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 250c7e24..e434b2a6 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,6 @@ local config = { -- Specify configuration "-v", "-race", "-count=1", - "-timeout=60s", "-coverprofile=" .. vim.fn.getcwd() .. "/coverage.out", }, } @@ -102,7 +101,7 @@ Note that the example above writes a coverage file. You can use [andythigpen/nvim-coverage](https://github.com/andythigpen/nvim-coverage) to show the coverage in Neovim. -See `go help test` for possible arguments. +See `go help test`, `go help testflag`, `go help build` for possible arguments. ### Example configuration: debugging @@ -179,8 +178,6 @@ return { go_test_args = { "-v", "-race", - "-count=1", - "-timeout=60s", "-coverprofile=" .. vim.fn.getcwd() .. "/coverage.out", }, dap_go_enabled = true, @@ -201,6 +198,9 @@ return { local meta = getmetatable(adapter) if adapter.setup then adapter.setup(config) + elseif adapter.adapter then + adapter.adapter(config) + adapter = adapter.adapter elseif meta and meta.__call then adapter(config) else