mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 02:44:39 +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)
|
||||
|
||||
local adapters = {}
|
||||
if opts.adapters then
|
||||
local adapters = {}
|
||||
for name, config in pairs(opts.adapters or {}) do
|
||||
if type(name) == "number" then
|
||||
adapters[#adapters + 1] = config
|
||||
|
@ -47,9 +47,10 @@ return {
|
|||
adapters[#adapters + 1] = adapter
|
||||
end
|
||||
end
|
||||
opts.adapters = adapters
|
||||
end
|
||||
|
||||
require("neotest").setup({ adapters = adapters })
|
||||
require("neotest").setup(opts)
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue