This commit is contained in:
thek4n 2026-08-13 18:32:47 +03:00
parent 872b594f2c
commit 5b8dfde8c2
2 changed files with 19 additions and 3 deletions

View File

@ -4,6 +4,24 @@
programs.yazi = {
enable = true;
initLua = ''
function Linemode:size_and_mtime()
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
local size = self._file:size()
return string.format("%s %s", size and ya.readable_size(size) or "-", time)
end
require("git"):setup()
'';
# Основные настройки
settings = {
manager = {
@ -66,9 +84,7 @@
];
};
# Плагины
plugins = {
git.package = pkgs.yaziPlugins.git;
mount.package = pkgs.yaziPlugins.mount;
jump-to-char.package = pkgs.yaziPlugins.jump-to-char;
smart-enter.package = pkgs.yaziPlugins.smart-enter;

View File

@ -42,6 +42,6 @@
};
imports = [
./yazi.nix
./modules/yazi.nix
];
}