mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(go): add neotest adapter to adapters
This commit is contained in:
parent
a6bcba008e
commit
c56fbba527
1 changed files with 9 additions and 5 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue