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

97 lines
2.6 KiB
Nix
Raw Normal View History

2024-11-21 13:51:18 +00:00
{ config, ... }: {
programs.yazi.initLua = with config.lib.stylix.colors; ''
2024-11-21 09:24:15 +00:00
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 = {
2024-11-21 13:51:18 +00:00
fg = "white",
2024-11-21 09:24:15 +00:00
bg_mode = {
2024-11-21 13:51:18 +00:00
normal = "#${base02}",
select = "#${base02}",
un_set = "#${base02}"
2024-11-21 09:24:15 +00:00
}
},
2024-11-21 13:51:18 +00:00
style_b = { bg = "#${base03}", fg = "white" },
style_c = { bg = "black", fg = "white" },
2024-11-21 09:24:15 +00:00
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"},
}
}
},
})
'';
}