style(highlite): inline __call specification
This commit is contained in:
parent
8757a6c228
commit
2798132cdf
|
@ -158,8 +158,7 @@ function highlite:highlight_terminal(terminal_ansi_colors)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return setmetatable(highlite, {
|
return setmetatable(highlite, {['__call'] = function(self, normal, highlights, terminal_ansi_colors)
|
||||||
['__call'] = function(self, normal, highlights, terminal_ansi_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]
|
||||||
|
@ -176,7 +175,6 @@ return setmetatable(highlite, {
|
||||||
return tbl[key]
|
return tbl[key]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- save the colors_name before syntax reset
|
-- save the colors_name before syntax reset
|
||||||
local color_name = vim.g.colors_name
|
local color_name = vim.g.colors_name
|
||||||
|
|
||||||
|
@ -203,5 +201,4 @@ return setmetatable(highlite, {
|
||||||
|
|
||||||
-- Set the terminal highlight colors.
|
-- Set the terminal highlight colors.
|
||||||
self:highlight_terminal(terminal_ansi_colors)
|
self:highlight_terminal(terminal_ansi_colors)
|
||||||
end
|
end})
|
||||||
})
|
|
||||||
|
|
Loading…
Reference in New Issue