nixos-config/home-manager/modules/fzf.nix
gwg313 bb2fe56082
Some checks failed
Basic Code Checks / formatting-check (push) Has been cancelled
style
Signed-off-by: gwg313 <gwg313@pm.me>
2025-07-03 10:34:00 -04:00

35 lines
683 B
Nix

# Fzf is a general-purpose command-line fuzzy finder.
{
config,
lib,
...
}:
let
accent = "#" + config.lib.stylix.colors.base0D;
foreground = "#" + config.lib.stylix.colors.base05;
muted = "#" + config.lib.stylix.colors.base03;
in
{
programs.fzf = {
enable = true;
enableZshIntegration = true;
colors = lib.mkForce {
"fg+" = accent;
"bg+" = "-1";
"fg" = foreground;
"bg" = "-1";
"prompt" = muted;
"pointer" = accent;
};
defaultOptions = [
"--margin=1"
"--layout=reverse"
"--border=none"
"--info='hidden'"
"--header=''"
"--prompt='/ '"
"-i"
"--no-bold"
];
};
}