From: Tran Duc Binh Date: Tue, 23 Aug 2022 01:36:32 +0000 (+0700) Subject: improv: highlight link immediately X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=3c2019e9fdf0fbc4e5383d18f79e57c99d9eba1d;p=nvim-plugins%2Fflatwhite.git improv: highlight link immediately --- diff --git a/lua/dracula/init.lua b/lua/dracula/init.lua index 36d5e85..03a0891 100644 --- a/lua/dracula/init.lua +++ b/lua/dracula/init.lua @@ -66,22 +66,15 @@ local function apply(configs) groups[group] = setting end - local links = {} ---@type table -- run defined highlights for group, value in pairs(groups) do if type(value) == "table" then ---@cast value Highlight nvim_set_hl(0, group, value) elseif type(value) == "string" then - -- make sure links will run later - links[group] = { link = value } + nvim_set_hl(0, group, { link = value }) end end - - -- run highlights link commands - for group, setting in pairs(links) do - nvim_set_hl(0, group, setting) - end end local local_configs = DEFAULT_CONFIG