diff --git a/.config/yazi/init.lua b/.config/yazi/init.lua index 99e606a..81efd17 100644 --- a/.config/yazi/init.lua +++ b/.config/yazi/init.lua @@ -45,15 +45,76 @@ Header:children_add(function() end return ui.Span(ya.user_name() .. "@" .. ya.host_name() .. ":"):fg("blue") end, 500, Header.LEFT) --- startship prompt -require("starship"):setup({ - -- Hide flags (such as filter, find and search). This is recommended for starship themes which - -- are intended to go across the entire width of the terminal. - hide_flags = false, -- Default: false - -- Whether to place flags after the starship prompt. False means the flags will be placed before the prompt. - flags_after_prompt = true, -- Default: true - -- Custom starship configuration file to use - config_file = "~/.config/starship_full.toml", -- Default: nil -}) --- git for yazi +--git require("git"):setup() +-- yatline dracula_theme +local dracula_theme = require("yatline-dracula"):setup() +-- yatline +require("yatline"):setup({ + theme = dracula_theme, + section_separator = { open = "", close = "" }, + part_separator = { open = "", close = "" }, + inverse_separator = { open = "", close = "" }, + show_background = false, + tab_width = 0, + + header_line = { + left = { + section_a = { + { type = "coloreds", custom = false, name = "tab_path" }, + {type = "line", custom = false, name = "tabs", params = {"left"}}, + }, + section_b = { + {type = "coloreds", custom = false, name = "githead"}, + }, + section_c = { + } + }, + right = { + section_a = { + + + }, + section_b = { + + }, + section_c = { + {type = "coloreds", custom = false, name = "count"}, + } + } + }, + + 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"}, + + } + }, + right = { + section_a = { + {type = "string", custom = false, name = "cursor_position"}, + }, + section_b = { + {type = "string", custom = false, name = "cursor_percentage"}, + }, + section_c = { + + + {type = "coloreds", custom = false, name = "permissions"}, + } + } + }, +}) +-- yatline-tab-path +require("yatline-tab-path"):setup() +-- yatline-githead +require("yatline-githead"):setup() + diff --git a/.config/yazi/yazi.toml b/.config/yazi/yazi.toml index 49c88e1..6cbf958 100644 --- a/.config/yazi/yazi.toml +++ b/.config/yazi/yazi.toml @@ -1,6 +1,6 @@ [manager] show_hidden = true -linemode = "size_and_mtime" +linemode = "owner" [plugin] prepend_previewers = [