Add nvim-like statusline to yazi

Not perfect yet but simmilar at least.
This commit is contained in:
wzykubek 2024-10-28 21:55:38 +01:00
parent b962eb615f
commit 994e7af16e
No known key found for this signature in database
3 changed files with 71 additions and 9 deletions

View File

@ -0,0 +1,66 @@
require("yatline"):setup({
section_separator = { open = "", close = "" },
part_separator = { open = "", close = "" },
inverse_separator = { open = "", close = "" },
style_a = { fg = "black", bg_mode = {
normal = "#ebbcba",
select = "#c4a7e7",
un_set = "#c4a7e7",
} },
style_b = { bg = "#2d2b38", fg = "#e0def4" },
style_c = { bg = "#201e2b", fg = "#706e7d" },
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 = true,
display_header_line = true,
display_status_line = true,
header_line = {
left = {
section_a = {},
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_name" },
},
section_c = {
{ type = "coloreds", custom = false, name = "count" },
{ type = "coloreds", custom = false, name = "task_states" },
},
},
right = {
section_a = {
{ type = "string", custom = false, name = "cursor_position" },
},
section_b = {
{ type = "string", custom = false, name = "hovered_size" },
},
section_c = {
{ type = "coloreds", custom = false, name = "permissions" },
},
},
},
})

View File

@ -0,0 +1,5 @@
[plugin]
deps = [{ use = "imsi32/yatline", rev = "7b56434" }]
[flavor]
deps = []

View File

@ -35,15 +35,6 @@ syntect_theme = "~/.config/yazi/rose-pine.tmTheme"
# : Status {{{
[status]
separator_open = ""
separator_close = ""
separator_style = { fg = "#2A273F", bg = "#2A273F" }
# Mode
mode_normal = { fg = "#191724", bg = "#ebbcba", bold = true }
mode_select = { fg = "#e0def4", bg = "#9ccfd8", bold = true }
mode_unset = { fg = "#e0def4", bg = "#b4637a", bold = true }
# Progress
progress_label = { fg = "#e0def4", bold = true }
progress_normal = { fg = "#191724", bg = "#2A273F" }