From ec460230b4f935dc74df00d28acaaadde1b7c255 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 25 Apr 2021 15:53:20 +0200 Subject: [PATCH] fix: terminal colors for light theme --- lua/tokyonight/util.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/tokyonight/util.lua b/lua/tokyonight/util.lua index 628b392..bfe1e6b 100644 --- a/lua/tokyonight/util.lua +++ b/lua/tokyonight/util.lua @@ -158,6 +158,12 @@ function util.terminal(colors) vim.g.terminal_color_6 = colors.cyan vim.g.terminal_color_14 = colors.cyan + + if vim.o.background == "light" then + for i = 0, 15, 1 do + vim.g["terminal_color_" .. i] = util.getColor(vim.g["terminal_color_" .. i]) + end + end end ---@param theme Theme