profiles/dev: add configuration for lf

This commit is contained in:
Gabriel Arazas 2023-07-25 20:22:16 +08:00
parent 78928e4a3a
commit f1131fb847
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -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 = {
"<enter>" = "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 <tab> cmd-menu-complete
cmap <backtab> cmd-menu-complete-back
'';
};
# dog > sky dog > cat.
programs.bat = {
enable = true;