Iron-E / nvim-highlite

A colorscheme generator that is "lite" on logic for the developer.
Other
240 stars 33 forks source link

Wrong terminal highlights #8

Closed Th3Whit3Wolf closed 3 years ago

Th3Whit3Wolf commented 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.