Fix fzf IFD
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
alejandro-angulo 2025-12-19 21:37:53 -08:00
parent 2e4893336a
commit b396fdadb2
2 changed files with 24 additions and 2 deletions

View file

@ -36,6 +36,8 @@
powerlevel10k.url = "github:romkatv/powerlevel10k/master"; powerlevel10k.url = "github:romkatv/powerlevel10k/master";
powerlevel10k.flake = false; powerlevel10k.flake = false;
catppuccin-nix-palette.url = "git+https://git.alejandr0angul0.dev/alejandro-angulo/catppuccin-nix-palette?ref=main";
}; };
outputs = outputs =

View file

@ -2,10 +2,28 @@
config, config,
lib, lib,
namespace, namespace,
inputs,
... ...
}: }:
let let
cfg = config.${namespace}.programs.fzf; cfg = config.${namespace}.programs.fzf;
colors =
lib.attrsets.mapAttrs
(_: color: inputs.catppuccin-nix-palette.lib.palette.mocha.colors.${color}.hex)
{
"bg+" = "surface0";
bg = "base";
spinner = "rosewater";
hl = "mauve";
fg = "text";
header = "mauve";
info = "mauve";
pointer = "mauve";
marker = "mauve";
"fg+" = "text";
prompt = "mauve";
"hl+" = "mauve";
};
in in
{ {
options.${namespace}.programs.fzf = { options.${namespace}.programs.fzf = {
@ -13,7 +31,9 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
catppuccin.fzf.enable = true; programs.fzf = {
programs.fzf.enable = true; inherit colors;
enable = true;
};
}; };
} }