style(highlite): inline __call specification

This commit is contained in:
Iron-E 2021-01-26 12:54:04 -05:00
parent 8757a6c228
commit 2798132cdf
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22
1 changed files with 41 additions and 44 deletions

View File

@ -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})