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
|
||||
|
||||
return setmetatable(highlite, {
|
||||
['__call'] = function(self, normal, highlights, terminal_ansi_colors)
|
||||
return setmetatable(highlite, {['__call'] = function(self, normal, highlights, terminal_ansi_colors)
|
||||
-- function to resolve function highlight groups being defined by function calls.
|
||||
local function resolve(tbl, key, resolve_links)
|
||||
local value = tbl[key]
|
||||
|
@ -176,7 +175,6 @@ return setmetatable(highlite, {
|
|||
return tbl[key]
|
||||
end
|
||||
|
||||
|
||||
-- save the colors_name before syntax reset
|
||||
local color_name = vim.g.colors_name
|
||||
|
||||
|
@ -203,5 +201,4 @@ return setmetatable(highlite, {
|
|||
|
||||
-- Set the terminal highlight colors.
|
||||
self:highlight_terminal(terminal_ansi_colors)
|
||||
end
|
||||
})
|
||||
end})
|
||||
|
|
Loading…
Reference in New Issue