fix(spec): Plugin.opts is now always a table. Fixes #351

This commit is contained in:
Folke Lemaitre 2023-01-08 18:45:30 +01:00
parent ef87c24e8e
commit e77be3cf3b
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 13 additions and 5 deletions

View file

@ -295,6 +295,9 @@ end
--- Values will me merged in-place in the first left-most table. If you want the result to be in
--- a new table, then simply pass an empty table as the first argument `vim.merge({}, ...)`
--- Supports clearing values by setting a key to `vim.NIL`
---@generic T
---@param ... T
---@return T
function M.merge(...)
local values = { ... }
local ret = values[1]