yazi config
This commit is contained in:
parent
b9f9db4a92
commit
09f234a90d
3 changed files with 19 additions and 0 deletions
|
@ -88,6 +88,7 @@ require("yatline"):setup({
|
|||
section_c = {
|
||||
{type = "string", custom = false, name = "hovered_file_extension", params = {true}},
|
||||
{type = "coloreds", custom = false, name = "permissions"},
|
||||
{type = "string", custom = false, name = "hovered_ownership"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
--- @sync entry
|
||||
return {
|
||||
entry = function(_, job)
|
||||
local current = cx.active.current
|
||||
local new = (current.cursor + job.args[1]) % #current.files
|
||||
ya.manager_emit("arrow", { new - current.cursor })
|
||||
end,
|
||||
}
|
|
@ -22,11 +22,17 @@
|
|||
{ on = "p"; run = "plugin smart-paste"; desc = "Paste into the hovered directory or CWD"; }
|
||||
{ on = ["g" "l"]; run = "plugin lazygit"; desc = "lazygit"; }
|
||||
{ on = "F"; run = "plugin jump-to-char"; desc = "jump to char"; }
|
||||
{ on = "k"; run = "plugin arrow -1"; desc = "up"; }
|
||||
{ on = "j"; run = "plugin arrow 1"; desc = "down"; }
|
||||
{ on = "<Up>"; run = "plugin arrow -1"; desc = "up"; }
|
||||
{ on = "<Down>"; run = "plugin arrow 1"; desc = "down"; }
|
||||
];
|
||||
};
|
||||
settings = {
|
||||
manager = {
|
||||
sort_dir_first = false;
|
||||
linemode = "mtime";
|
||||
show_symlink = true;
|
||||
};
|
||||
opener = {
|
||||
edit = [
|
||||
|
@ -38,6 +44,10 @@
|
|||
];
|
||||
};
|
||||
plugin = {
|
||||
prepend_preloaders = [
|
||||
{ name = "/mnt/**"; run = "noop"; }
|
||||
{ name = "/home/emenel/mnt/**"; run = "noop"; }
|
||||
];
|
||||
append_previewers = [
|
||||
{ name = "*"; run = "file-extra-metadata"; }
|
||||
{ name = "*.md"; run = "glow"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue