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

@ -17,7 +17,7 @@ function M.status(icon, status)
return status() ~= nil
end,
color = function()
return LazyVim.ui.fg(colors[status()] or colors.ok)
return { fg = Snacks.util.color(colors[status()] or colors.ok) }
end,
}
end
@ -146,7 +146,7 @@ function M.root_dir(opts)
other = true,
icon = "󱉭 ",
color = function()
return LazyVim.ui.fg("Special")
return { fg = Snacks.util.color("Special") }
end,
}, opts or {})