fix no lspmappings without custom mappings | 0f013d4e7b (commitcomment-74845391)

This commit is contained in:
siduck 2022-05-29 20:26:16 +05:30
parent ebe1512108
commit 1381e924cf

View file

@ -92,9 +92,8 @@ M.load_mappings = function(mappings, mapping_opt)
end end
end end
mappings.lspconfig = nil for section, section_mappings in pairs(mappings) do
if section ~= "lspconfig" then
for _, section_mappings in pairs(mappings) do
-- skip mapping this as its mapppings are loaded in lspconfiguti -- skip mapping this as its mapppings are loaded in lspconfiguti
for mode, mode_mappings in pairs(section_mappings) do for mode, mode_mappings in pairs(section_mappings) do
for keybind, mapping_info in pairs(mode_mappings) do for keybind, mapping_info in pairs(mode_mappings) do
@ -111,6 +110,7 @@ M.load_mappings = function(mappings, mapping_opt)
end end
end end
end end
end
end end
-- load plugin after entering vim ui -- load plugin after entering vim ui