1
0

fzf.nix 675 B

12345678910111213141516171819202122
  1. { pkgs, ... }:
  2. {
  3. home.packages = with pkgs; [ fd ];
  4. programs.fzf = rec {
  5. # TODO(@tstachl): figure out why this is happening in tmux
  6. # fish: Unknown command: fzf_key_bindings
  7. # source /nix/store/.../share/fzf/key-bindings.fish && fzf_key_bindings
  8. enable = false;
  9. changeDirWidgetCommand = defaultCommand;
  10. changeDirWidgetOptions = [ "--type=d" ] ++ defaultOptions;
  11. defaultCommand = "${pkgs.fd}/bin/fd";
  12. defaultOptions = [
  13. "--strip-cwd-prefix"
  14. "--hidden"
  15. "--exclude .git"
  16. ];
  17. fileWidgetCommand = defaultCommand;
  18. fileWidgetOptions = [ "--type=f" ] ++ defaultOptions;
  19. tmux.enableShellIntegration = true;
  20. };
  21. }