mirror of
https://github.com/gabehf/base46.git
synced 2026-03-08 23:18:15 -07:00
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
This commit is contained in:
parent
faf37b4696
commit
bfff47892c
4 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue