From 86cc51458afbf76b14ae35a52be22bd2712708c8 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 1 Dec 2024 11:12:17 -0800 Subject: [PATCH] fix: Fix linter warning --- nvim/lua/lib/lazyvim/ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/lib/lazyvim/ui.lua b/nvim/lua/lib/lazyvim/ui.lua index 85089e7..d869398 100644 --- a/nvim/lua/lib/lazyvim/ui.lua +++ b/nvim/lua/lib/lazyvim/ui.lua @@ -25,7 +25,7 @@ end ---@return {fg?:string}? function M.fg(name) local hl = vim.api.nvim_get_hl(0, { name = name, link = false }) - local fg = hl and hl.fg or hl.foreground + local fg = hl and hl.fg or nil return fg and { fg = string.format('#%06x', fg) } or nil end