mirror of
https://github.com/librephoenix/nixos-config
synced 2025-11-30 14:43:59 +05:30
Yazi updates
This commit is contained in:
parent
f16bc6ab16
commit
aef5b0ba8d
1 changed files with 92 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ in {
|
||||||
{ name = "Screenshots"; text = ""; }
|
{ name = "Screenshots"; text = ""; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
keymap.manager.prepend_keymap =
|
keymap.manager.prepend_keymap =
|
||||||
[
|
[
|
||||||
{ run = "cd ~/Projects"; on = [ "g" "p" ]; desc = "Go to projects"; }
|
{ run = "cd ~/Projects"; on = [ "g" "p" ]; desc = "Go to projects"; }
|
||||||
{ run = "cd ~/Screenshots"; on = [ "g" "s" ]; desc = "Go to screenshots"; }
|
{ run = "cd ~/Screenshots"; on = [ "g" "s" ]; desc = "Go to screenshots"; }
|
||||||
|
|
@ -80,14 +80,103 @@ in {
|
||||||
{ run = "redo"; on = [ "<C-r>" ]; }
|
{ run = "redo"; on = [ "<C-r>" ]; }
|
||||||
];
|
];
|
||||||
plugins = {
|
plugins = {
|
||||||
full-border = pkgs.yaziPlugins.full-border;
|
|
||||||
git = pkgs.yaziPlugins.git;
|
git = pkgs.yaziPlugins.git;
|
||||||
sudo = pkgs.yaziPlugins.sudo;
|
sudo = pkgs.yaziPlugins.sudo;
|
||||||
piper = pkgs.yaziPlugins.piper;
|
piper = pkgs.yaziPlugins.piper;
|
||||||
|
yatline = pkgs.yaziPlugins.yatline;
|
||||||
};
|
};
|
||||||
initLua = ''
|
initLua = ''
|
||||||
require("full-border"):setup()
|
|
||||||
require("git"):setup()
|
require("git"):setup()
|
||||||
|
require("yatline"):setup({
|
||||||
|
--theme = my_theme,
|
||||||
|
section_separator = { open = "", close = "" },
|
||||||
|
part_separator = { open = "", close = "" },
|
||||||
|
inverse_separator = { open = "", close = "" },
|
||||||
|
|
||||||
|
style_a = {
|
||||||
|
fg = "black",
|
||||||
|
bg_mode = {
|
||||||
|
normal = "white",
|
||||||
|
select = "brightyellow",
|
||||||
|
un_set = "brightred"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
style_b = { bg = "brightblack", fg = "brightwhite" },
|
||||||
|
style_c = { bg = "black", fg = "brightwhite" },
|
||||||
|
|
||||||
|
permissions_t_fg = "green",
|
||||||
|
permissions_r_fg = "yellow",
|
||||||
|
permissions_w_fg = "red",
|
||||||
|
permissions_x_fg = "cyan",
|
||||||
|
permissions_s_fg = "white",
|
||||||
|
|
||||||
|
tab_width = 20,
|
||||||
|
tab_use_inverse = false,
|
||||||
|
|
||||||
|
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,
|
||||||
|
|
||||||
|
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 = "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"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
'';
|
'';
|
||||||
settings = {
|
settings = {
|
||||||
"plugin.prepend_fetchers" = [
|
"plugin.prepend_fetchers" = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue