Merge pull request #189 from nullchilly/dev

fix(compiler): term_colors
dev
Pocco81 2 years ago committed by GitHub
commit 1435867a66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,6 +37,7 @@ vim.g.colors_name = "catppuccin"]],
end end
end end
local tbl = vim.tbl_deep_extend("keep", theme.integrations, theme.editor) local tbl = vim.tbl_deep_extend("keep", theme.integrations, theme.editor)
tbl = vim.tbl_deep_extend("keep", theme.syntax, tbl)
tbl = vim.tbl_deep_extend("keep", config.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
@ -61,27 +62,9 @@ vim.g.colors_name = "catppuccin"]],
end end
end end
if config.term_colors then if config.term_colors == true then
local colors = { for k, v in pairs(theme.terminal) do
"overlay0", table.insert(lines, fmt('vim.g.%s = "%s"', k, v))
"red",
"green",
"yellow",
"blue",
"pink",
"sky",
"text",
"overlay1",
"red",
"green",
"yellow",
"blue",
"pink",
"sky",
"text",
}
for i = 0, 15 do
table.insert(lines, fmt('vim.g.terminal_color_%d = "%s"', i, theme.terminal[colors[i + 1]]))
end end
end end
os.execute( os.execute(

Loading…
Cancel
Save