From b6180fbbffcfa0bf82f2c780911ca732fdd87512 Mon Sep 17 00:00:00 2001 From: Tran Duc Binh Date: Mon, 22 Aug 2022 15:55:03 +0700 Subject: [PATCH] fix: bad highlight link call --- lua/dracula/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.30.2