fix(compile): nil

dev
nullchilly 2 years ago
parent a228219717
commit c58b14648d

@ -27,7 +27,6 @@ end
vim.g.colors_name = "catppuccin"]], vim.g.colors_name = "catppuccin"]],
} }
local config = require("catppuccin.config").options local config = require("catppuccin.config").options
local custom_highlights = config.custom_highlights
for property, value in pairs(theme.properties) do for property, value in pairs(theme.properties) do
if type(value) == "string" then if type(value) == "string" then
table.insert(lines, fmt('vim.o.%s = "%s"', property, value)) table.insert(lines, fmt('vim.o.%s = "%s"', property, value))
@ -37,8 +36,8 @@ vim.g.colors_name = "catppuccin"]],
table.insert(lines, fmt("vim.o.%s = %s", property, inspect(value))) table.insert(lines, fmt("vim.o.%s = %s", property, inspect(value)))
end end
end end
local tbl = vim.tbl_deep_extend("keep", theme.integrations, theme.base) local tbl = vim.tbl_deep_extend("keep", theme.integrations, theme.editor)
tbl = vim.tbl_deep_extend("keep", custom_highlights, tbl) tbl = vim.tbl_deep_extend("keep", config.custom_highlights, tbl)
for group, color in pairs(tbl) do for group, color in pairs(tbl) do
if color.link then if color.link then

Loading…
Cancel
Save