mirror of https://github.com/folke/lazy.nvim.git
feat(spec): overriding keys with an rhs of `false` will remove the key instead
This commit is contained in:
parent
208f91b52f
commit
870af80c68
|
@ -76,7 +76,7 @@ function M:values(plugin)
|
||||||
---@diagnostic disable-next-line: no-unknown
|
---@diagnostic disable-next-line: no-unknown
|
||||||
for _, value in ipairs(plugin[self.type] or {}) do
|
for _, value in ipairs(plugin[self.type] or {}) do
|
||||||
local keys = M.parse(value)
|
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
|
values[keys.id] = nil
|
||||||
else
|
else
|
||||||
values[keys.id] = keys
|
values[keys.id] = keys
|
||||||
|
|
Loading…
Reference in New Issue