diff --git a/modules/programs/fzf.nix b/modules/programs/fzf.nix index 36eb3a1cd..3aee57768 100644 --- a/modules/programs/fzf.nix +++ b/modules/programs/fzf.nix @@ -100,6 +100,14 @@ in { Whether to enable Zsh integration. ''; }; + + enableFishIntegration = mkOption { + default = true; + type = types.bool; + description = '' + Whether to enable Fish integration. + ''; + }; }; config = mkIf cfg.enable { @@ -130,5 +138,9 @@ in { . ${pkgs.fzf}/share/fzf/key-bindings.zsh fi ''; + + programs.fish.shellInit = mkIf cfg.enableFishIntegration '' + source ${pkgs.fzf}/share/fzf/key-bindings.fish && fzf_key_bindings + ''; }; }