From 45745fe5960acaefef2b60f3455bcac6a0ca6bc9 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:19:43 +0800 Subject: [PATCH] feat(home-manager/fzf): add accent support (#331) --- modules/home-manager/fzf.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/modules/home-manager/fzf.nix b/modules/home-manager/fzf.nix index fe58c68..7d9b87a 100644 --- a/modules/home-manager/fzf.nix +++ b/modules/home-manager/fzf.nix @@ -7,7 +7,9 @@ let palette = (lib.importJSON "${sources.palette}/palette.json").${cfg.flavor}.colors; in { - options.programs.fzf.catppuccin = lib.ctp.mkCatppuccinOpt { name = "fzf"; }; + options.programs.fzf.catppuccin = lib.ctp.mkCatppuccinOpt { name = "fzf"; } // { + accent = lib.ctp.mkAccentOpt "fzf"; + }; config.programs.fzf.colors = lib.mkIf enable @@ -18,15 +20,15 @@ in "bg+" = "surface0"; bg = "base"; spinner = "rosewater"; - hl = "red"; + hl = cfg.accent; fg = "text"; - header = "red"; - info = "mauve"; - pointer = "rosewater"; - marker = "rosewater"; + header = cfg.accent; + info = cfg.accent; + pointer = cfg.accent; + marker = cfg.accent; "fg+" = "text"; - prompt = "mauve"; - "hl+" = "red"; + prompt = cfg.accent; + "hl+" = cfg.accent; } ); }