1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-10 09:13:53 +00:00
ultima/modules/home/programs/cli/yazi/lua.nix

97 lines
2.6 KiB
Nix
Raw Normal View History

2024-11-21 09:24:15 +00:00
{ ... }: {
programs.yazi.initLua = ''
require("no-status"):setup()
require("archivemount"):setup()
require("full-border"):setup { type = ui.Border.ROUNDED, }
require("yatline"):setup({
section_separator = { open = "", close = "" },
part_separator = { open = "", close = "" },
inverse_separator = { open = "", close = "" },
style_a = {
fg = "black",
bg_mode = {
normal = "blue",
select = "yellow",
un_set = "red"
}
},
style_b = { bg = "brightblack", fg = "brightwhite" },
style_c = { bg = "black", fg = "brightwhite" },
permissions_t_fg = "green",
permissions_r_fg = "yellow",
permissions_w_fg = "red",
permissions_x_fg = "cyan",
permissions_s_fg = "darkgray",
tab_width = 20,
tab_use_inverse = true,
selected = { icon = "󰻭", fg = "yellow" },
copied = { icon = "", fg = "green" },
cut = { icon = "", fg = "red" },
total = { icon = "󰮍", fg = "yellow" },
succ = { icon = "", fg = "green" },
fail = { icon = "", fg = "red" },
found = { icon = "󰮕", fg = "blue" },
processed = { icon = "󰐍", fg = "green" },
show_background = false,
display_header_line = true,
display_status_line = true,
header_line = {
left = {
section_a = {
{type = "string", custom = false, name = "tab_path"},
},
section_b = {
},
section_c = {
}
},
right = {
section_a = {
{type = "line", custom = false, name = "tabs", params = {"right"}},
},
section_b = {
},
section_c = {
}
}
},
status_line = {
left = {
section_a = {
{type = "string", custom = false, name = "tab_mode"},
},
section_b = {
{type = "string", custom = false, name = "hovered_size"},
},
section_c = {
{type = "string", custom = false, name = "hovered_name"},
{type = "coloreds", custom = false, name = "count"},
}
},
right = {
section_a = {
{type = "string", custom = false, name = "date", params = {"%d/%m/%Y"}},
},
section_b = {
{type = "string", custom = false, name = "hovered_file_extension", params = {true}},
},
section_c = {
{type = "coloreds", custom = false, name = "permissions"},
}
}
},
})
'';
}