From f1131fb8474f5f42d742ff3aebac7643a85c0337 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 25 Jul 2023 20:22:16 +0800 Subject: [PATCH] profiles/dev: add configuration for lf --- modules/home-manager/profiles/dev.nix | 29 ++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/profiles/dev.nix b/modules/home-manager/profiles/dev.nix index 07669082..4dcbf10a 100644 --- a/modules/home-manager/profiles/dev.nix +++ b/modules/home-manager/profiles/dev.nix @@ -17,7 +17,6 @@ in { home.packages = with pkgs; [ dasel # Universal version of jq. gopass # An improved version of the password manager for hipsters. - lf # File manager in the terminal, really. moar # More 'more'. perl534Packages.vidir # Bulk rename for your organizing needs in the terminal. tealdeer # An easy cop-out for basic help. @@ -56,6 +55,34 @@ in { defaultCommand = "${fd} --type file --hidden"; }; + # The file manager of choice. + programs.lf = { + enable = true; + + keybindings = { + "" = "shell"; + "gr" = "cd /"; + }; + + settings = { + # Aesthetics. + color256 = true; + dircounts = true; + hidden = true; + drawbox = true; + timefmt = "2006-01-02 15:04:05"; + + # Scrolling options. + wrapscroll = true; + scrolloff = 10; + }; + + extraConfig = '' + cmap cmd-menu-complete + cmap cmd-menu-complete-back + ''; + }; + # dog > sky dog > cat. programs.bat = { enable = true;