From 870af80c68f3834ffcbced1528cce6197ec2b4ae Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 16 Jan 2023 21:27:55 +0100 Subject: [PATCH] feat(spec): overriding keys with an rhs of `false` will remove the key instead --- lua/lazy/core/handler/keys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/handler/keys.lua b/lua/lazy/core/handler/keys.lua index ddd97efb..dd785811 100644 --- a/lua/lazy/core/handler/keys.lua +++ b/lua/lazy/core/handler/keys.lua @@ -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