Files
home-manager/tests/modules/programs/fzf/history-command-version-warning.nix
Austin Horstman fe3ce0a527 fzf: add historyWidget.command option
Expose FZF_CTRL_R_COMMAND again so users can disable fzf's Ctrl-R binding explicitly, and warn when the configured package is too old to support it.
2026-07-02 15:28:15 -05:00

34 lines
655 B
Nix

{
config,
lib,
options,
...
}:
{
programs.fzf = {
enable = true;
enableNushellIntegration = false;
historyWidget.command = "history";
package = config.lib.test.mkStubPackage {
name = "fzf";
version = "0.65.0";
};
};
test.asserts.warnings.expected = [
''
`programs.fzf.historyWidget.command` defined in ${lib.showFiles options.programs.fzf.historyWidget.command.files} requires fzf 0.66.0 or greater.
The configured FZF_CTRL_R_COMMAND value will be ignored by older fzf
versions.
''
];
nmt.script = ''
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
'';
}