I’m still trying to get any plugins to work in yazi. I’m using home manager for this.
Background: I managed, with help here, to get bookmarks to work (building it myself), only for it fail to build after a recent nixpkgs update (I use unstable). In the course of fixing it, I realized that I had be searching for packages on 26.05, not unstable, and that there are a slew of plugins now already packaged, including bookmarks. I also decided to move the module to home manager to take advantage of it’s expanded options.
Here is my module. yazi itself works fine, but none of the plugins work.
❯ \cat biscotty/yazi.nix
{ pkgs, ... }:
{
programs.yazi = {
enable = true;
enableZshIntegration = true;
shellWrapperName = "y";
settings = {
yazi.mgr = {
ratio = [
1
3
3
];
sort_by = "natural";
sort_sensitive = true;
sort_reverse = false;
sort_dir_first = true;
linemode = "none";
show_hidden = true;
show_symlink = true;
};
keymap = {
mgr.prepend_keymap = [
{
on = [ "n" ];
run = "plugin bookmarks save";
desc = "Save current position as a bookmark";
}
{
on = [ "'" ];
run = "plugin bookmarks jump";
desc = "Jump to a bookmark";
}
{
on = [
"b"
"d"
];
run = "plugin bookmarks delete";
desc = "Delete a bookmark";
}
{
on = [
"b"
"D"
];
run = "plugin bookmarks delete_all";
desc = "Delete all bookmarks";
}
{
on = [ "F" ];
run = "plugin jump-to-char";
desc = "Jump to char";
}
];
};
};
plugins = with pkgs.yaziPlugins; {
inherit nord;
inherit starship;
inherit jump-to-char;
bookmarks = {
package = bookmarks;
setup = true;
settings = {
last_directory = {
enable = false;
persist = false;
mode = "dir";
};
persist = "none";
desc_format = "full";
file_pick_mode = "hover";
custom_desc_input = false;
show_keys = false;
notify = {
enable = false;
timeout = 1;
message = {
new = "New bookmark '<key>' -> '<folder>'";
delete = "Deleted bookmark in '<key>'";
delete_all = "Deleted all bookmarks";
};
};
};
};
};
};
}
Thanks in advance.