From cac088df1040a7d84156ab3b1cf1beabd3ef6584 Mon Sep 17 00:00:00 2001 From: Iron-E Date: Sun, 22 Aug 2021 15:22:16 -0400 Subject: [PATCH] style(highlite): newline `{` --- lua/highlite.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/highlite.lua b/lua/highlite.lua index bd92cf4..321599a 100644 --- a/lua/highlite.lua +++ b/lua/highlite.lua @@ -114,7 +114,8 @@ function highlite.group(group_name) style.color = tohex(group_definition.special) end - return { + return + { ['fg'] = group_definition.foreground and tohex(group_definition.foreground) or _NONE, ['bg'] = group_definition.background and tohex(group_definition.background) or _NONE, ['blend'] = group_definition.blend, @@ -171,7 +172,8 @@ return setmetatable(highlite, {['__call'] = function(self, normal, highlights, t local value = tbl[key] local value_type = type(value) if value_type == 'function' then -- call and cache the result; next time, if it isn't a function this step will be skipped - tbl[key] = value(setmetatable({}, { + tbl[key] = value(setmetatable({}, + { ['__index'] = function(_, inner_key) return resolve(tbl, inner_key, true) end })) elseif resolve_links and value_type == _TYPE_STRING and not string.find(value, '^#') then