This commit is contained in:
Peder Bergebakken Sundt 2024-10-20 02:52:38 +02:00
parent a8c291abed
commit 6dd77f1154
1 changed files with 18 additions and 1 deletions

View File

@ -79,7 +79,24 @@
programs.nix-index-database.comma.enable = true; # via nix-index-database flake
#programs.command-not-found.enable = false; # mutex with nix-index
programs.fzf.enable = true; # TODO: does this conflict with system-wide setup?
programs.fzf = {
enable = true; # TODO: does this conflict with system-wide setup?
# alt-c
changeDirWidgetCommand = "fd --type d"; # respects .gitignore
changeDirWidgetOptions = [ "--preview 'tree -C {} | head -200'" ];
# ctrl-t
fileWidgetCommand = "fd --type f"; # respects .gitignore
fileWidgetOptions = [
#"--preview 'head {}'"
# https://github.com/junegunn/fzf/discussions/3363#discussioncomment-6419463
"--bind 'ctrl-a:reload:eval $FZF_DEFAULT_COMMAND --no-ignore'"
];
# ctrl-r
#historyWidgetOptions = [ "--sort" "--exact" ];
};
programs.eza.enable = true;
programs.eza.enableAliases = lib.mkIf (lib.versionOlder config.home.version.release "24.05") true;