fix(go): add neotest adapter to adapters

This commit is contained in:
Jonas Holst Damtoft 2023-05-23 12:52:00 +02:00
parent a6bcba008e
commit c56fbba527

View file

@ -37,10 +37,14 @@ return {
dependencies = {
"nvim-neotest/neotest-go",
},
opts = {
adapter_config = {
["neotest-go"] = {},
},
},
-- Add custom options for neotest-go in nvim-neotest opts.adapter_config["neotest-go"]
opts = function(_, opts)
opts.adapters = vim.list_extend(opts.adapters, { require("neotest-go") })
opts.adapter_config = {
["neotest-go"] = {
-- I.e. set opts.adapter_config["neotest-go"].args = { "-tags=integration" }
},
}
end,
},
}