fix: Fix linter warning
This commit is contained in:
parent
64c6e1e1e8
commit
86cc51458a
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ end
|
||||||
---@return {fg?:string}?
|
---@return {fg?:string}?
|
||||||
function M.fg(name)
|
function M.fg(name)
|
||||||
local hl = vim.api.nvim_get_hl(0, { name = name, link = false })
|
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
|
return fg and { fg = string.format('#%06x', fg) } or nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue