mirror of
https://github.com/gabehf/base46.git
synced 2026-03-07 21:48:18 -08: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
|
||||
|
||||
M.load_highlight = function(group)
|
||||
group = require("base46.integrations." .. group)
|
||||
M.load_highlight = function(group, is_extended)
|
||||
local str = is_extended and "extended_" or ""
|
||||
group = require("base46." .. str .. "integrations." .. group)
|
||||
M.extend_default_hl(group)
|
||||
return group
|
||||
end
|
||||
|
|
@ -140,8 +141,8 @@ M.compile = function()
|
|||
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))
|
||||
for _, filename in ipairs(extended_integrations) do
|
||||
M.saveStr_to_cache(filename, M.load_highlight(filename, true))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue