-
What system are you running Yazi on?Linux X11 What terminal are you running Yazi in?alacritty 0.15.1
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The type of If there's no file within the folder at all, then there's also no hovered file, so you need to check if it's if not cx.active.current.hovered then
return ui.Line {}
end I'd recommend using the |
Beta Was this translation helpful? Give feedback.
-
I get another solution from another forum: -- Status bar time
end, 300, Status.LEFT) This is working too in forst look. |
Beta Was this translation helpful? Give feedback.
The type of
cx.active.current.hovered
isFile?
, which means it may benil
If there's no file within the folder at all, then there's also no hovered file, so you need to check if it's
nil
:I'd recommend using the
types.yazi
which is a type definition of Yazi APIs to avoid all such errors - LSP is your friend!