fix(ui): use Snacks.util.color instead of LazyVim.ui.fg

This commit is contained in:
Folke Lemaitre 2024-12-12 07:36:09 +01:00
parent e389a5ada9
commit 6d774ba8f2
4 changed files with 15 additions and 13 deletions

View file

@ -24,11 +24,4 @@ function M.foldexpr()
return vim.b[buf].ts_folds and vim.treesitter.foldexpr() or "0"
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
return fg and { fg = string.format("#%06x", fg) } or nil
end
return M