From: Tran Duc Binh Date: Mon, 22 Aug 2022 08:55:03 +0000 (+0700) Subject: fix: bad highlight link call X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=b6180fbbffcfa0bf82f2c780911ca732fdd87512;p=nvim-plugins%2Fflatwhite.git fix: bad highlight link call --- diff --git a/lua/dracula/init.lua b/lua/dracula/init.lua index e633a6c..a10d3b9 100644 --- a/lua/dracula/init.lua +++ b/lua/dracula/init.lua @@ -16,7 +16,7 @@ local DEFAULT_CONFIG = { show_end_of_buffer = g.dracula_show_end_of_buffer, lualine_bg_color = g.dracula_lualine_bg_color, colors = tbl_deep_extend("force", require("dracula.palette"), - g.dracula_colors or {}), + g.dracula_colors or {}) --[[@as Palette]] , } local TRANSPARENTS = { @@ -61,7 +61,7 @@ local function apply(configs) end end - local links = {} ---@type Highlight[] + local links = {} ---@type table -- run defined highlights for group, value in pairs(groups) do if type(value) == "table" then @@ -74,7 +74,7 @@ local function apply(configs) end -- run highlights link commands - for group, command in ipairs(links) do + for group, command in pairs(links) do nvim_set_hl(0, group, command) end end @@ -85,7 +85,7 @@ local local_configs = DEFAULT_CONFIG ---@param configs DefaultConfig? local function setup(configs) if type(configs) == "table" then - local_configs = tbl_deep_extend("force", DEFAULT_CONFIG, configs) + local_configs = tbl_deep_extend("force", DEFAULT_CONFIG, configs) --[[@as DefaultConfig]] end end