mirror of
https://github.com/gabehf/base46.git
synced 2026-03-13 09:20:31 -07:00
make extended integrations hlgroups overridable
This commit is contained in:
parent
fa29b86476
commit
87a3054bd5
1 changed files with 5 additions and 4 deletions
|
|
@ -78,8 +78,9 @@ M.extend_default_hl = function(highlights)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
M.load_highlight = function(group)
|
M.load_highlight = function(group, is_extended)
|
||||||
group = require("base46.integrations." .. group)
|
local str = is_extended and "extended_" or ""
|
||||||
|
group = require("base46." .. str .. "integrations." .. group)
|
||||||
M.extend_default_hl(group)
|
M.extend_default_hl(group)
|
||||||
return group
|
return group
|
||||||
end
|
end
|
||||||
|
|
@ -140,8 +141,8 @@ M.compile = function()
|
||||||
local extended_integrations = config.ui.extended_integrations
|
local extended_integrations = config.ui.extended_integrations
|
||||||
|
|
||||||
if extended_integrations then
|
if extended_integrations then
|
||||||
for _, integration in ipairs(extended_integrations) do
|
for _, filename in ipairs(extended_integrations) do
|
||||||
M.saveStr_to_cache(integration, require("base46.extended_integrations." .. integration))
|
M.saveStr_to_cache(filename, M.load_highlight(filename, true))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue