From 3fc888c147ba187fb876e8244f59eb96a071d0c4 Mon Sep 17 00:00:00 2001 From: Leon Heidelbach Date: Sun, 15 May 2022 14:10:39 +0200 Subject: [PATCH] fix: remove disabled maps from which-key again --- lua/core/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/core/utils.lua b/lua/core/utils.lua index 0394160..327ba24 100644 --- a/lua/core/utils.lua +++ b/lua/core/utils.lua @@ -64,7 +64,7 @@ nvchad.remove_disabled_mappings = function(key_map) for k, v in pairs(key_map) do if v ~= nil and v ~= "" then clean_map[k] = v end end - else + elseif not key_map == nil and not key_map == "" then return key_map end return clean_map