mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 10:54:40 +02:00
fix(neotest): pass opts to neotest
This commit is contained in:
parent
cd96e3d9e5
commit
bf66e71adc
1 changed files with 3 additions and 2 deletions
|
@ -34,8 +34,8 @@ return {
|
||||||
},
|
},
|
||||||
}, neotest_ns)
|
}, neotest_ns)
|
||||||
|
|
||||||
local adapters = {}
|
|
||||||
if opts.adapters then
|
if opts.adapters then
|
||||||
|
local adapters = {}
|
||||||
for name, config in pairs(opts.adapters or {}) do
|
for name, config in pairs(opts.adapters or {}) do
|
||||||
if type(name) == "number" then
|
if type(name) == "number" then
|
||||||
adapters[#adapters + 1] = config
|
adapters[#adapters + 1] = config
|
||||||
|
@ -47,9 +47,10 @@ return {
|
||||||
adapters[#adapters + 1] = adapter
|
adapters[#adapters + 1] = adapter
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
opts.adapters = adapters
|
||||||
end
|
end
|
||||||
|
|
||||||
require("neotest").setup({ adapters = adapters })
|
require("neotest").setup(opts)
|
||||||
end,
|
end,
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue