Add nvim-like statusline to yazi
Not perfect yet but simmilar at least.
This commit is contained in:
parent
619826af43
commit
4812b31e1e
66
yazi/.config/yazi/init.lua
Normal file
66
yazi/.config/yazi/init.lua
Normal 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" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
5
yazi/.config/yazi/package.toml
Normal file
5
yazi/.config/yazi/package.toml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[plugin]
|
||||||
|
deps = [{ use = "imsi32/yatline", rev = "7b56434" }]
|
||||||
|
|
||||||
|
[flavor]
|
||||||
|
deps = []
|
@ -35,15 +35,6 @@ syntect_theme = "~/.config/yazi/rose-pine.tmTheme"
|
|||||||
# : Status {{{
|
# : Status {{{
|
||||||
|
|
||||||
[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
|
||||||
progress_label = { fg = "#e0def4", bold = true }
|
progress_label = { fg = "#e0def4", bold = true }
|
||||||
progress_normal = { fg = "#191724", bg = "#2A273F" }
|
progress_normal = { fg = "#191724", bg = "#2A273F" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user