move nondefault hlgroups to a different folder

usage : extended_integrations = { "bufferline", "alpha" } in M.ui table, this was necessary. Because in the futuer i will be adding more hlgroup support for another non default plugins and it will be costly to load all the hlgroups by default. So i let the user mention it in his chadrc regarding custom hlgroups he wants
v2.5
siduck 3 years ago
parent faf37b4696
commit bfff47892c

@ -129,6 +129,15 @@ M.compile = function()
M.saveStr_to_cache(filename, M.load_highlight(filename))
end
end
-- look for custom cached highlight files
local extended_integrations = config.ui.extended_integrations
if extended_integrations then
for _, integration in ipairs(extended_integrations) do
M.saveStr_to_cache(integration, require("base46.extended_integrations." .. integration))
end
end
end
M.load_all_highlights = function()

Loading…
Cancel
Save