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,14 +104,8 @@ 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
end
end
function util.properties(tbl)

Loading…
Cancel
Save