From f2c3ed0e7d502b8ebc9a905d8b32ab94f7041bfb Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Fri, 12 Aug 2022 17:57:32 +0530 Subject: [PATCH] utils: mappings: Allow plugin=true in user mappings so that they can be lazy loaded if required https://github.com/NvChad/NvChad/issues/1467 --- lua/core/utils.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/core/utils.lua b/lua/core/utils.lua index 2426692..ed533f6 100644 --- a/lua/core/utils.lua +++ b/lua/core/utils.lua @@ -45,6 +45,7 @@ M.remove_disabled_keys = function(chadrc_mappings, default_mappings) if not keys_to_disable[mode] then keys_to_disable[mode] = {} end + section_keys = (type(section_keys) == "table" and section_keys) or {} for k, _ in pairs(section_keys) do keys_to_disable[mode][k] = true end