2021-11-05 14:43:28 +08:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
|
|
M.colorscheme_to_term_colors = function(colorscheme)
|
|
|
|
|
local specs, _, term = unpack(colorscheme)
|
2021-11-06 11:03:27 +08:00
|
|
|
local fg = specs.Normal.fg
|
2021-11-08 17:26:17 +08:00
|
|
|
return vim.tbl_extend("keep", {
|
2021-11-05 15:55:49 +08:00
|
|
|
fg = fg,
|
2021-11-06 11:03:27 +08:00
|
|
|
bg = specs.Normal.bg,
|
|
|
|
|
cursor_fg = specs.Cursor.fg,
|
|
|
|
|
cursor_bg = specs.Cursor.bg,
|
|
|
|
|
selection_bg = specs.Visual.bg,
|
2021-11-05 15:55:49 +08:00
|
|
|
selection_fg = fg,
|
2021-11-08 17:26:17 +08:00
|
|
|
}, term)
|
2021-11-05 14:43:28 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return M
|