Skip to content

Commit

Permalink
docs: sync with my neotest setup (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil authored Jul 6, 2024
1 parent 09c9796 commit b521556
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ local config = { -- Specify configuration
"-v",
"-race",
"-count=1",
"-timeout=60s",
"-coverprofile=" .. vim.fn.getcwd() .. "/coverage.out",
},
}
Expand All @@ -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

Expand Down Expand Up @@ -179,8 +178,6 @@ return {
go_test_args = {
"-v",
"-race",
"-count=1",
"-timeout=60s",
"-coverprofile=" .. vim.fn.getcwd() .. "/coverage.out",
},
dap_go_enabled = true,
Expand All @@ -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
Expand Down

0 comments on commit b521556

Please sign in to comment.