utils: mappings: Allow plugin=true in user mappings

so that they can be lazy loaded if required

https://github.com/NvChad/NvChad/issues/1467
This commit is contained in:
Akianonymus 2022-08-12 17:57:32 +05:30 committed by Sidhanth Rathod
parent 78ddf8d624
commit f2c3ed0e7d

View File

@ -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