mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
feat(yazi): enlarge image previews and add four plugins (#469)
Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
d6450d48a2
commit
6c083dbf27
1 file changed
+52
@@ -13,6 +13,58 @@
|
||||
show_hidden = true;
|
||||
sort_dir_first = true;
|
||||
};
|
||||
preview = {
|
||||
max_width = 2000;
|
||||
max_height = 2000;
|
||||
};
|
||||
plugin.prepend_fetchers = [
|
||||
{
|
||||
url = "*";
|
||||
run = "git";
|
||||
group = "git";
|
||||
}
|
||||
{
|
||||
url = "*/";
|
||||
run = "git";
|
||||
group = "git";
|
||||
}
|
||||
];
|
||||
};
|
||||
plugins = with pkgs.yaziPlugins; {
|
||||
git = {
|
||||
package = git;
|
||||
setup = true;
|
||||
settings = {
|
||||
order = 1500;
|
||||
};
|
||||
};
|
||||
inherit
|
||||
jump-to-char
|
||||
toggle-pane
|
||||
zoom
|
||||
;
|
||||
};
|
||||
keymap.mgr.prepend_keymap = [
|
||||
{
|
||||
on = "=";
|
||||
run = "plugin zoom 1";
|
||||
desc = "Zoom in the preview";
|
||||
}
|
||||
{
|
||||
on = "-";
|
||||
run = "plugin zoom -1";
|
||||
desc = "Zoom out the preview";
|
||||
}
|
||||
{
|
||||
on = "T";
|
||||
run = "plugin toggle-pane max-preview";
|
||||
desc = "Maximize or restore the preview";
|
||||
}
|
||||
{
|
||||
on = "F";
|
||||
run = "plugin jump-to-char";
|
||||
desc = "Jump to the next file starting with a character";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user