no need to manually convert to hex

This commit is contained in:
Michael Chris Lopez
2021-11-06 11:03:27 +08:00
parent e122642ac3
commit de8f1bdad8
3 changed files with 54 additions and 54 deletions

View File

@@ -2,30 +2,30 @@ local M = {}
M.colorscheme_to_term_colors = function(colorscheme)
local specs, _, term = unpack(colorscheme)
local fg = specs.Normal.fg.hex
local fg = specs.Normal.fg
return {
fg = fg,
bg = specs.Normal.bg.hex,
cursor_fg = specs.Cursor.fg.hex,
cursor_bg = specs.Cursor.bg.hex,
selection_bg = specs.Visual.bg.hex,
bg = specs.Normal.bg,
cursor_fg = specs.Cursor.fg,
cursor_bg = specs.Cursor.bg,
selection_bg = specs.Visual.bg,
selection_fg = fg,
black = term[1].hex,
red = term[2].hex,
green = term[3].hex,
yellow = term[4].hex,
blue = term[5].hex,
magenta = term[6].hex,
cyan = term[7].hex,
white = term[8].hex,
bright_black = term[9].hex,
bright_red = term[10].hex,
bright_green = term[11].hex,
bright_yellow = term[12].hex,
bright_blue = term[13].hex,
bright_magenta = term[14].hex,
bright_cyan = term[15].hex,
bright_white = term[16].hex,
black = term[1],
red = term[2],
green = term[3],
yellow = term[4],
blue = term[5],
magenta = term[6],
cyan = term[7],
white = term[8],
bright_black = term[9],
bright_red = term[10],
bright_green = term[11],
bright_yellow = term[12],
bright_blue = term[13],
bright_magenta = term[14],
bright_cyan = term[15],
bright_white = term[16],
}
end