fix: replace deprecated vim.loop and vim.highlight

This commit is contained in:
2026-09-21 10:22:27 +00:00
parent bbfa8117a0
commit 939357b363
3 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ local function default_header()
local hour = tonumber(vim.fn.strftime("%H"))
local part_id = math.floor((hour + 4) / 8) + 1
local day_part = ({ "evening", "morning", "afternoon", "evening" })[part_id]
local username = vim.loop.os_get_passwd()["username"] or "USERNAME"
local username = vim.uv.os_get_passwd()["username"] or "USERNAME"
return ("good %s, %s"):format(day_part, username)
end