ref: `terminal_ansi_colors` -> `terminal_colors`

The reason for this name change is that the colors of the terminal are
not necessarily ANSI.
This commit is contained in:
Iron-E 2021-08-03 19:42:30 -04:00
parent 18b7ebb4b1
commit f6eb9e06c4
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22
2 changed files with 4 additions and 4 deletions

View File

@ -932,7 +932,7 @@ local highlight_groups = {
this will inevitably cause usability issues so be careful. this will inevitably cause usability issues so be careful.
]] ]]
local terminal_ansi_colors = { local terminal_colors = {
[1] = black, [1] = black,
[2] = red_dark, [2] = red_dark,
[3] = green_dark, [3] = green_dark,
@ -1014,7 +1014,7 @@ local terminal_ansi_colors = {
require(vim.g.colors_name)( require(vim.g.colors_name)(
highlight_group_normal, highlight_group_normal,
highlight_groups, highlight_groups,
terminal_ansi_colors terminal_colors
) )
-- Thanks to Romain Lafourcade (https://github.com/romainl) for the original template (romainl/vim-rnb). -- Thanks to Romain Lafourcade (https://github.com/romainl) for the original template (romainl/vim-rnb).

View File

@ -165,7 +165,7 @@ function highlite:highlight_terminal(terminal_colors)
end end
end end
return setmetatable(highlite, {['__call'] = function(self, normal, highlights, terminal_ansi_colors) return setmetatable(highlite, {['__call'] = function(self, normal, highlights, terminal_colors)
-- function to resolve function highlight groups being defined by function calls. -- function to resolve function highlight groups being defined by function calls.
local function resolve(tbl, key, resolve_links) local function resolve(tbl, key, resolve_links)
local value = tbl[key] local value = tbl[key]
@ -204,5 +204,5 @@ return setmetatable(highlite, {['__call'] = function(self, normal, highlights, t
end end
-- Set the terminal highlight colors. -- Set the terminal highlight colors.
self:highlight_terminal(terminal_ansi_colors) self:highlight_terminal(terminal_colors)
end}) end})