18 lines
544 B
Nix
18 lines
544 B
Nix
|
{ inputs, ... }:
|
||
|
{
|
||
|
yazi = {
|
||
|
enable = true;
|
||
|
enableFishIntegration = true;
|
||
|
package = inputs.yazi.packages.x86_64-linux.default;
|
||
|
initLua = ./init.lua;
|
||
|
keymap = {
|
||
|
input.prepend_keymap = [
|
||
|
{ on = "<C-d>"; run = "shell 'ripdrag \"$@\" -x 2>/dev/null &' --confirm"; }
|
||
|
{ on = "y"; run = ["shell 'for path in \"$@\"; do echo \"file://$path\"; done | wl-copy -t text/uri-list'\n" "yank"]; }
|
||
|
{ on = ["g" "r"]; run = "shell 'ya emit cd \"$(git rev-parse --show-toplevel)\"'\n"; }
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|