From 3dfb75a9d4d416d91ebc5a2f853f5f2c9d95b161 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 23 Jun 2023 17:12:10 +0800 Subject: [PATCH] profiles/dev: add fzf configuration --- modules/home-manager/profiles/dev.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/profiles/dev.nix b/modules/home-manager/profiles/dev.nix index e0966fcc..89870b08 100644 --- a/modules/home-manager/profiles/dev.nix +++ b/modules/home-manager/profiles/dev.nix @@ -16,7 +16,6 @@ in { ({ home.packages = with pkgs; [ dasel # Universal version of jq. - fzf # A fuzzy finder that enables fuzzy finding not furry finding, a common misconception. gopass # An improved version of the password manager for hipsters. lazygit # Git interface for the lazy who cannot be asked to add hunks properly. lf # File manager in the terminal, really. @@ -31,6 +30,16 @@ in { exa # Oh nice, a shinier `ls`. ]; + + # A fuzzy finder that enables fuzzy finding not furry finding, a common misconception. + programs.fzf = let + fd = "${lib.getBin pkgs.fd}/bin/fd"; + in { + enable = true; + changeDirWidgetCommand = "${fd} --type d"; + defaultCommand = "${fd} --type f"; + }; + # dog > sky dog > cat. programs.bat = { enable = true;