From fcbe61fed518a80e9d8d1f04d92f22f238f28ccc Mon Sep 17 00:00:00 2001 From: Luckas Date: Fri, 30 Aug 2024 11:31:32 +0300 Subject: [PATCH] refactor: consistent styling --- lua/tailwind-tools/cmp.lua | 2 +- lua/tailwind-tools/health.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/tailwind-tools/cmp.lua b/lua/tailwind-tools/cmp.lua index 9770b81..9c9e4b1 100644 --- a/lua/tailwind-tools/cmp.lua +++ b/lua/tailwind-tools/cmp.lua @@ -13,8 +13,8 @@ M.lspkind_format = function(entry, vim_item) if vim_item.kind == "Color" and doc then local content = type(doc) == "string" and doc or doc.value local r, g, b = utils.extract_color(content) - local style = config.options.cmp.highlight + if r then vim_item.kind_hl_group = utils.set_hl_from(r, g, b, style) end end diff --git a/lua/tailwind-tools/health.lua b/lua/tailwind-tools/health.lua index 80b5fc9..80629cb 100644 --- a/lua/tailwind-tools/health.lua +++ b/lua/tailwind-tools/health.lua @@ -11,7 +11,7 @@ M.check = function() end end - local function check_plugin(name, module) + local check_plugin = function(name, module) if pcall(require, module) then health.ok(name .. " is installed") else