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
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

@ -104,13 +104,7 @@ end
function util.syntax(tbl)
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)
end
util.highlight(group, colors)
end
end

Loading…
Cancel
Save