feat(spec): overriding keys with an rhs of `false` will remove the key instead

This commit is contained in:
Folke Lemaitre 2023-01-16 21:27:55 +01:00
parent 208f91b52f
commit 870af80c68
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function M:values(plugin)
---@diagnostic disable-next-line: no-unknown
for _, value in ipairs(plugin[self.type] or {}) do
local keys = M.parse(value)
if keys[2] == vim.NIL then
if keys[2] == vim.NIL or keys[2] == false then
values[keys.id] = nil
else
values[keys.id] = keys