fix(go): pr changes

This commit is contained in:
Jonas Holst Damtoft 2023-05-23 16:52:50 +02:00
parent c56fbba527
commit 5907595c5e

View file

@ -6,6 +6,7 @@ return {
"go", "go",
"gomod", "gomod",
"gowork", "gowork",
"gosum",
}) })
end, end,
}, },
@ -37,14 +38,13 @@ return {
dependencies = { dependencies = {
"nvim-neotest/neotest-go", "nvim-neotest/neotest-go",
}, },
-- Add custom options for neotest-go in nvim-neotest opts.adapter_config["neotest-go"] opts = {
opts = function(_, opts) adapters = {
opts.adapters = vim.list_extend(opts.adapters, { require("neotest-go") })
opts.adapter_config = {
["neotest-go"] = { ["neotest-go"] = {
-- I.e. set opts.adapter_config["neotest-go"].args = { "-tags=integration" } -- Here we can set options for neotest-go, e.g.
}, -- args = { "-tags=integration" }
} },
end, },
},
}, },
} }