mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(spec): Plugin.opts
is now always a table. Fixes #351
This commit is contained in:
parent
ef87c24e8e
commit
e77be3cf3b
3 changed files with 13 additions and 5 deletions
|
@ -298,6 +298,14 @@ describe("plugin opts", function()
|
|||
spec = { { "foo/foo", config = { a = 1, b = 1 } }, { "foo/foo", config = { a = vim.NIL } } },
|
||||
opts = { b = 1 },
|
||||
},
|
||||
{
|
||||
spec = { { "foo/foo", config = { a = 1, b = 1 } }, { "foo/foo" } },
|
||||
opts = { a = 1, b = 1 },
|
||||
},
|
||||
{
|
||||
spec = { { "foo/foo" }, { "foo/foo" } },
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
|
||||
for _, test in ipairs(tests) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue