♻️ refactor(utils): move stats modules to utils

Move wakatime_stats and music_stats to new utils dir
This commit is contained in:
2024-08-07 08:20:30 -04:00
parent 25352b81a0
commit e1e59bfea5
2 changed files with 13 additions and 0 deletions
@@ -66,4 +66,17 @@ function M.get_total_minutes()
return (hours * 60) + mins
end
function M.get_color()
local total_minutes = M.get_total_minutes()
local rooticolor = require("utils.rooticolor") -- Adjust according to your actual setup
if total_minutes >= 60 then
return { fg = rooticolor.get_fg_color("GitSignsAdd") }
elseif total_minutes >= 30 then
return { fg = rooticolor.get_fg_color("GitSignsChange") }
else
return { fg = rooticolor.get_fg_color("GitSignsDelete") }
end
end
return M