mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
23 lines
661 B
Nix
23 lines
661 B
Nix
{pkgs, ...}: {
|
|
programs.fzf = {
|
|
fuzzyCompletion = true;
|
|
keybindings = true;
|
|
};
|
|
|
|
home-manager.users.me = {
|
|
programs.fzf = rec {
|
|
enable = true;
|
|
defaultCommand = "${pkgs.fd}/bin/fd --type f --strip-cwd-prefix --follow --no-ignore-vcs --exclude .git";
|
|
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 {}'"];
|
|
};
|
|
};
|
|
}
|