Closed Th3Whit3Wolf closed 3 years ago
You use
local terminal_ansi_colors = { [1] = black, [2] = red_dark, [3] = green_dark, [4] = orange, [5] = blue, [6] = magenta_dark, [7] = teal, [8] = gray, [9] = gray_dark, [10] = red, [11] = green, [12] = yellow, [13] = turqoise, [14] = purple, [15] = cyan, [16] = gray_light }
function highlite:highlight_terminal(terminal_ansi_colors) for index, color in ipairs(terminal_ansi_colors) do vim.g['terminal_color_'..index] = vim.o.termguicolors and color[_PALETTE_HEX] or color[_PALETTE_256] or get(color, _PALETTE_ANSI) end end
but terminal colors start at 0.
You use
but terminal colors start at 0.