2025-12-27 22:22:54 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
{
|
2023-07-27 14:39:26 +02:00
|
|
|
programs.fzf = {
|
|
|
|
|
fuzzyCompletion = true;
|
|
|
|
|
keybindings = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
home-manager.users.me = {
|
2025-12-27 22:22:54 +01:00
|
|
|
programs.fzf =
|
|
|
|
|
let
|
|
|
|
|
defaultCommand = "${pkgs.fd}/bin/fd --type f --strip-cwd-prefix --follow --no-ignore-vcs --exclude .git";
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
enable = true;
|
|
|
|
|
defaultCommand = defaultCommand;
|
|
|
|
|
defaultOptions = [ "--height=40%" ];
|
|
|
|
|
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
|
|
|
|
|
changeDirWidgetOptions = [
|
|
|
|
|
"--preview='${pkgs.tree}/bin/tree -L 1 {}'"
|
|
|
|
|
"--bind=space:toggle-preview"
|
|
|
|
|
"--preview-window=hidden"
|
|
|
|
|
];
|
|
|
|
|
fileWidgetCommand = defaultCommand;
|
|
|
|
|
fileWidgetOptions = [ "--preview='head -$LINES {}'" ];
|
|
|
|
|
};
|
2020-04-13 10:52:17 +02:00
|
|
|
};
|
|
|
|
|
}
|