fix: term colors

dev-rc
Pocco81 3 years ago
parent da17cefdc0
commit 72f0eddaae

@ -205,20 +205,7 @@ local function get_integrations()
end end
local function get_terminal() local function get_terminal()
local g = vim.g return color_palette
local cp = color_palette
g.terminal_color_0 = cp.catppuccin0
g.terminal_color_1 = cp.catppuccin1
g.terminal_color_2 = cp.catppuccin2
g.terminal_color_3 = cp.catppuccin3
g.terminal_color_4 = cp.catppuccin4
g.terminal_color_5 = cp.catppuccin5
g.terminal_color_6 = cp.catppuccin6
g.terminal_color_7 = cp.catppuccin7
g.terminal_color_8 = cp.catppuccin8
g.terminal_color_9 = cp.catppuccin9
g.terminal_color_10 = cp.catppuccin10
end end
function M.apply() function M.apply()

@ -116,24 +116,24 @@ function util.properties(tbl)
end end
end end
function util.terminal(clrs) function util.terminal(cp)
g.terminal_color_0 = clrs.black g.terminal_color_0 = cp.catppuccin1
g.terminal_color_1 = clrs.red g.terminal_color_1 = cp.catppuccin5
g.terminal_color_2 = clrs.green g.terminal_color_2 = cp.catppuccin7
g.terminal_color_3 = clrs.yellow g.terminal_color_3 = cp.catppuccin8
g.terminal_color_4 = clrs.blue g.terminal_color_4 = cp.catppuccin9
g.terminal_color_5 = clrs.magenta g.terminal_color_5 = cp.catppuccin3
g.terminal_color_6 = clrs.cyan g.terminal_color_6 = cp.catppuccin4
g.terminal_color_7 = clrs.white g.terminal_color_7 = cp.catppuccin0
g.terminal_color_8 = clrs.black_br g.terminal_color_8 = cp.catppuccin1
g.terminal_color_9 = clrs.red_br g.terminal_color_9 = cp.catppuccin5
g.terminal_color_10 = clrs.green_br g.terminal_color_10 = cp.catppuccin7
g.terminal_color_11 = clrs.yellow_br g.terminal_color_11 = cp.catppuccin8
g.terminal_color_12 = clrs.blue_br g.terminal_color_12 = cp.catppuccin9
g.terminal_color_13 = clrs.magenta_br g.terminal_color_13 = cp.catppuccin3
g.terminal_color_14 = clrs.cyan_br g.terminal_color_14 = cp.catppuccin4
g.terminal_color_15 = clrs.white_br g.terminal_color_15 = cp.catppuccin0
end end
function util.load(theme) function util.load(theme)

Loading…
Cancel
Save