dotfiles/.config/yazi/symlink.lua
2023-11-25 21:45:47 +01:00

12 lines
241 B
Lua

function Status:name()
local h = cx.active.current.hovered
if h == nil then
return ui.Span("")
end
local linked = ""
if h.link_to ~= nil then
linked = " -> " .. tostring(h.link_to)
end
return ui.Span(" " .. h.name .. linked)
end