feat: add a new git_ignored theme option to allow customizing the color of ignored files, closes #19

This commit is contained in:
sxyazi
2024-09-04 12:48:50 +08:00
parent d9bfa0b987
commit c2c354e13d
2 changed files with 87 additions and 59 deletions

View File

@@ -25,9 +25,9 @@ local function setup(st, opts)
local spans = {}
for _, tag in ipairs(st.tags[url] or {}) do
if self._file:is_hovered() then
spans[#spans + 1] = ui.Span(""):bg(st.colors[tag] or "reset")
spans[#spans + 1] = ui.Span(""):bg(st.colors[tag] or "reset")
else
spans[#spans + 1] = ui.Span(""):fg(st.colors[tag] or "reset")
spans[#spans + 1] = ui.Span(""):fg(st.colors[tag] or "reset")
end
end
return ui.Line(spans)