Skip to content

Commit

Permalink
lf
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesquembre committed Mar 17, 2024
1 parent 7e764b7 commit e8dd0b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions home-manager/lf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ in

programs.lf = {
enable = true;

# cmd in lf
commands = {

open = ''
Expand Down Expand Up @@ -128,6 +130,8 @@ in
};
# Free space on device from CWD
# df -Ph . | tail -1 | awk '{print $4}'

# map in lf
keybindings = {

K = "push :mkdir<space>";
Expand Down Expand Up @@ -158,6 +162,12 @@ in
O = "push &<space>$f<home>";
};

# cmap in lf
cmdKeybindings = {
"<tab>" = "cmd-menu-complete";
"<backtab>" = "cmd-menu-complete-back";
};

settings = {
previewer = builtins.toString previewer;
preview = true;
Expand Down

0 comments on commit e8dd0b9

Please sign in to comment.