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 = { dependencies = {
"nvim-neotest/neotest-go", "nvim-neotest/neotest-go",
}, },
opts = { -- Add custom options for neotest-go in nvim-neotest opts.adapter_config["neotest-go"]
adapter_config = { opts = function(_, opts)
["neotest-go"] = {}, 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,
}, },
} }