Skip to content

Commit

Permalink
feat(spec): overriding keys with an rhs of false will remove the ke…
Browse files Browse the repository at this point in the history
…y instead
  • Loading branch information
folke committed Jan 16, 2023
1 parent 208f91b commit 870af80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/handler/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 870af80

Please sign in to comment.