nixos-config/modules/home/yazi/init.lua

32 lines
732 B
Lua
Raw Normal View History

2025-04-04 17:12:21 -04:00
require("git"):setup()
2025-02-09 23:11:13 -05:00
require("dir-rules"):setup()
2025-02-17 12:12:38 -05:00
2025-04-14 12:29:32 -04:00
require("restore"):setup({
2025-04-14 12:31:09 -04:00
position = { "center", w = 70, h = 40 },
show_confirm = true,
2025-04-14 12:29:32 -04:00
})
2025-04-05 13:01:20 -04:00
Status:children_add(function()
local h = cx.active.current.hovered
if h == nil or ya.target_family() ~= "unix" then
return ""
end
return ui.Line {
ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"),
":",
ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"),
" ",
}
end, 500, Status.RIGHT)
Status:children_add(function(self)
local h = self._current.hovered
if h and h.link_to then
return " -> " .. tostring(h.link_to)
else
return ""
end
end, 3300, Status.LEFT)