1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/fzf.nix

23 lines
661 B
Nix
Raw Permalink Normal View History

{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 = [
2023-08-07 14:22:47 +02:00
"--preview='${pkgs.tree}/bin/tree -L 1 {}'"
2020-04-27 09:56:22 +02:00
"--bind=space:toggle-preview"
"--preview-window=hidden"
];
fileWidgetCommand = defaultCommand;
2023-08-07 14:22:47 +02:00
fileWidgetOptions = ["--preview='head -$LINES {}'"];
};
};
}