various config updates
This commit is contained in:
parent
cd3c21cac7
commit
0f2ed387b3
2 changed files with 73 additions and 12 deletions
|
@ -45,15 +45,76 @@ Header:children_add(function()
|
||||||
end
|
end
|
||||||
return ui.Span(ya.user_name() .. "@" .. ya.host_name() .. ":"):fg("blue")
|
return ui.Span(ya.user_name() .. "@" .. ya.host_name() .. ":"):fg("blue")
|
||||||
end, 500, Header.LEFT)
|
end, 500, Header.LEFT)
|
||||||
-- startship prompt
|
--git
|
||||||
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
|
|
||||||
require("git"):setup()
|
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()
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[manager]
|
[manager]
|
||||||
show_hidden = true
|
show_hidden = true
|
||||||
linemode = "size_and_mtime"
|
linemode = "owner"
|
||||||
|
|
||||||
[plugin]
|
[plugin]
|
||||||
prepend_previewers = [
|
prepend_previewers = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue