yazi plugin refactor and cache

This commit is contained in:
Matt Nish-Lapidus 2025-04-04 17:12:21 -04:00
parent 62a382f2f5
commit 561f1fcdd0
5 changed files with 101 additions and 96 deletions

View file

@ -1,99 +1,93 @@
-- require("git"):setup()
require("git"):setup()
require("dir-rules"):setup()
-- require("yatline"):setup({
-- section_separator = { open = "", close = "" },
-- part_separator = { open = "", close = "" },
-- inverse_separator = { open = "", close = "" },
require("starship"):setup {
config_file = "~/.config/starship.toml",
}
-- style_a = {
-- fg = "black",
-- bg_mode = {
-- normal = "white",
-- select = "brightyellow",
-- un_set = "brightred"
-- }
-- },
-- style_b = { bg = "#111111", fg = "brightwhite" },
-- style_c = { bg = "#111111", fg = "brightwhite" },
require("yatline"):setup({
--theme = my_theme,
section_separator = { open = "", close = "" },
part_separator = { open = "", close = "" },
inverse_separator = { open = "", close = "" },
-- permissions_t_fg = "green",
-- permissions_r_fg = "yellow",
-- permissions_w_fg = "red",
-- permissions_x_fg = "cyan",
-- permissions_s_fg = "white",
style_a = {
fg = "black",
bg_mode = {
normal = "white",
select = "brightyellow",
un_set = "brightred"
}
},
style_b = { bg = "#111111", fg = "brightwhite" },
style_c = { bg = "#111111", fg = "brightwhite" },
-- tab_width = 20,
-- tab_use_inverse = false,
permissions_t_fg = "green",
permissions_r_fg = "yellow",
permissions_w_fg = "red",
permissions_x_fg = "cyan",
permissions_s_fg = "white",
-- selected = { icon = "󰻭", fg = "yellow" },
-- copied = { icon = "", fg = "green" },
-- cut = { icon = "", fg = "red" },
tab_width = 20,
tab_use_inverse = false,
-- total = { icon = "󰮍", fg = "yellow" },
-- succ = { icon = "", fg = "green" },
-- fail = { icon = "", fg = "red" },
-- found = { icon = "󰮕", fg = "blue" },
-- processed = { icon = "󰐍", fg = "green" },
selected = { icon = "󰻭", fg = "yellow" },
copied = { icon = "", fg = "green" },
cut = { icon = "", fg = "red" },
-- show_background = true,
total = { icon = "󰮍", fg = "yellow" },
succ = { icon = "", fg = "green" },
fail = { icon = "", fg = "red" },
found = { icon = "󰮕", fg = "blue" },
processed = { icon = "󰐍", fg = "green" },
-- display_header_line = true,
-- display_status_line = true,
show_background = true,
-- component_positions = { "header", "tab", "status" },
display_header_line = true,
display_status_line = true,
-- -- header_line = {
-- -- left = {
-- -- section_a = {
-- -- {type = "line", custom = false, name = "tabs", params = {"left"}},
-- -- },
-- -- section_b = {
-- -- },
-- -- section_c = {
-- -- }
-- -- },
-- -- right = {
-- -- section_a = {
-- -- },
-- -- section_b = {
-- -- },
-- -- section_c = {
-- -- }
-- -- }
-- -- },
component_positions = { "header", "tab", "status" },
header_line = {
left = {
section_a = {
{type = "line", custom = false, name = "tabs", params = {"left"}},
},
section_b = {
},
section_c = {
}
},
right = {
section_a = {
},
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_path"},
{ type = "coloreds", custom = false, name = "symlink" },
{type = "coloreds", custom = false, name = "count"},
}
},
right = {
section_a = {
{type = "string", custom = false, name = "cursor_position"},
},
section_b = {
{type = "string", custom = false, name = "cursor_percentage"},
},
section_c = {
{type = "string", custom = false, name = "hovered_file_extension", params = {true}},
{type = "coloreds", custom = false, name = "permissions"},
{type = "string", custom = false, name = "hovered_ownership"}
}
}
}
})
-- 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_path"},
-- { type = "coloreds", custom = false, name = "symlink" },
-- {type = "coloreds", custom = false, name = "count"},
-- }
-- },
-- right = {
-- section_a = {
-- {type = "string", custom = false, name = "cursor_position"},
-- },
-- section_b = {
-- {type = "string", custom = false, name = "cursor_percentage"},
-- },
-- section_c = {
-- {type = "string", custom = false, name = "hovered_file_extension", params = {true}},
-- {type = "coloreds", custom = false, name = "permissions"},
-- {type = "string", custom = false, name = "hovered_ownership"}
-- }
-- }
-- }
-- })

View file

@ -1,2 +1,7 @@
[flavor]
dark = "onedark"
[status]
overall = { bg = "#282C34" }
sep_left = { open = "", close = "" }
sep_right = { open = "", close = "" }