fix(highlite): g:terminal_color_xx not being set
Previous changes to this plugin prevented the terminal color from being set. Even before the changes, the terminal color was not set in all conditions. Now it will be!
This commit is contained in:
parent
20bc365437
commit
2541117eb6
|
@ -153,9 +153,9 @@ function highlite.highlight(highlight_group, attributes) -- {{{ †
|
||||||
end --}}} ‡
|
end --}}} ‡
|
||||||
|
|
||||||
function highlite:highlight_terminal(terminal_ansi_colors)
|
function highlite:highlight_terminal(terminal_ansi_colors)
|
||||||
if self.using_hex_or_256 then for index, color in ipairs(terminal_ansi_colors) do
|
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]
|
vim.g['terminal_color_'..index] = vim.o.termguicolors and color[_PALETTE_HEX] or color[_PALETTE_256] or get(color, _PALETTE_ANSI)
|
||||||
end end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return setmetatable(highlite, {
|
return setmetatable(highlite, {
|
||||||
|
|
Loading…
Reference in New Issue