-
Notifications
You must be signed in to change notification settings - Fork 0
/
yazi.nix
37 lines (35 loc) · 1.24 KB
/
yazi.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ pkgs, ... }: {
imports = [ <home-manager/nixos> ];
home-manager.users.sage = { ... }: {
programs.yazi = {
enable = true;
enableZshIntegration = true;
shellWrapperName = "fm";
settings = {
manager = {
sort_by = "extension";
sort_dir_first = true;
};
opener.text = [
{ run = "$EDITOR '$@'"; block = true; for = "unix"; }
];
};
initLua = ''
require("relative-motions"):setup({ show_numbers="relative_absolute", show_motion = true })
'';
keymap = {
manager.prepend_keymap = [
{ run = "plugin relative-motions --args=1"; on = [ "1"]; }
{ run = "plugin relative-motions --args=2"; on = [ "2"]; }
{ run = "plugin relative-motions --args=3"; on = [ "3"]; }
{ run = "plugin relative-motions --args=4"; on = [ "4"]; }
{ run = "plugin relative-motions --args=5"; on = [ "5"]; }
{ run = "plugin relative-motions --args=6"; on = [ "6"]; }
{ run = "plugin relative-motions --args=7"; on = [ "7"]; }
{ run = "plugin relative-motions --args=8"; on = [ "8"]; }
{ run = "plugin relative-motions --args=9"; on = [ "9"]; }
];
};
};
};
}