Some improvements

This commit is contained in:
2025-10-15 23:03:45 +02:00
parent 3c4424c556
commit c4df6d68a5
8 changed files with 34 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
function Linemode:line_info()
local time = math.floor(self._file.cha.mtime or 0)
if time == 0 then
time = ""
elseif os.date("%Y", time) == os.date("%Y") then
time = os.date("%b %d %H:%M", time)
else
time = os.date("%b %d %Y", time)
end
return time
end