dev: use deep extension for tables

dev-doc
Pocco81 3 years ago
parent a21e227656
commit 498db617ae

@ -185,7 +185,7 @@ local function get_integrations()
end end
if cot then if cot then
table.insert(final_integrations, require("catppuccino.core.integrations." .. integration).get(cpt)) final_integrations = vim.tbl_deep_extend("force", final_integrations, require("catppuccino.core.integrations." .. integration).get(cpt))
end end
end end

@ -104,15 +104,9 @@ end
function util.syntax(tbl) function util.syntax(tbl)
for group, colors in pairs(tbl) do for group, colors in pairs(tbl) do
if type(group) == "number" then
for inner_group, clrs in pairs(colors) do
util.highlight(inner_group, clrs)
end
else
util.highlight(group, colors) util.highlight(group, colors)
end end
end end
end
function util.properties(tbl) function util.properties(tbl)
for property, value in pairs(tbl) do for property, value in pairs(tbl) do

Loading…
Cancel
Save