30 lines
742 B
Lua
Executable File
30 lines
742 B
Lua
Executable File
require("yaziline"):setup({
|
|
separator_style = "angly",
|
|
select_symbol = "",
|
|
yank_symbol = "",
|
|
filename_max_length = 24, -- trim when filename > 24
|
|
filename_trim_length = 6, -- trim 6 chars from both ends
|
|
})
|
|
-- require("starship"):setup {
|
|
-- config_file = "~/.config/yazi/starship.toml",
|
|
-- }
|
|
require("git"):setup({})
|
|
|
|
Status:children_add(function()
|
|
local h = cx.active.current.hovered
|
|
if h == nil or ya.target_family() ~= "unix" then
|
|
return ui.Line({})
|
|
end
|
|
|
|
return ui.Line({
|
|
ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"),
|
|
ui.Span(":"),
|
|
ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"),
|
|
ui.Span(" "),
|
|
})
|
|
end, 500, Status.RIGHT)
|
|
|
|
require("yamb"):setup({
|
|
cli = "fzf",
|
|
})
|