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
1 changed files with 12 additions and 12 deletions

View File

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