feat(fzf): Catppuccin -> Rose Pine
This commit is contained in:
parent
e83dd23931
commit
1c6a265081
2 changed files with 32 additions and 30 deletions
|
@ -1,34 +1,36 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
inherit (config.catppuccin) sources;
|
|
||||||
|
|
||||||
cfg = config.programs.fzf.catppuccin;
|
|
||||||
enable = cfg.enable && config.programs.fzf.enable;
|
|
||||||
palette = (lib.importJSON "${sources.palette}/palette.json").${cfg.flavor}.colors;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options.programs.fzf.catppuccin = lib.ctp.mkCatppuccinOpt { name = "fzf"; } // {
|
config,
|
||||||
accent = lib.ctp.mkAccentOpt "fzf";
|
lib,
|
||||||
};
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.programs.fzf.rose-pine;
|
||||||
|
enable = cfg.enable && config.programs.fzf.enable;
|
||||||
|
palette = (lib.importJSON "../../.sources/palette.json").${cfg.flavor}.colors;
|
||||||
|
in {
|
||||||
|
options.programs.fzf.rose-pine =
|
||||||
|
lib.rp.mkRosePineOpt {name = "fzf";};
|
||||||
|
|
||||||
config.programs.fzf.colors =
|
config.programs.fzf.colors =
|
||||||
lib.mkIf enable
|
lib.mkIf enable
|
||||||
# Manually populate with colors from catppuccin/fzf
|
# Manually populate with colors from rose-pine/fzf
|
||||||
# The ordering is meant to match the order of catppuccin/fzf to make comparison easier
|
# The ordering is meant to match the order of rose-pine/fzf to make
|
||||||
(
|
# comparison easier
|
||||||
lib.attrsets.mapAttrs (_: color: palette.${color}.hex) {
|
(
|
||||||
"bg+" = "surface0";
|
lib.attrsets.mapAttrs (_: color: palette.${color}.hex) {
|
||||||
bg = "base";
|
fg = "subtle";
|
||||||
spinner = "rosewater";
|
bg = "base";
|
||||||
hl = cfg.accent;
|
hl = "rose";
|
||||||
fg = "text";
|
"fg+" = "text";
|
||||||
header = cfg.accent;
|
"bg+" = "overlay";
|
||||||
info = cfg.accent;
|
"hl+" = "rose";
|
||||||
pointer = cfg.accent;
|
border = "highlight-med";
|
||||||
marker = cfg.accent;
|
header = "pine";
|
||||||
"fg+" = "text";
|
gutter = "base";
|
||||||
prompt = cfg.accent;
|
spinner = "gold";
|
||||||
"hl+" = cfg.accent;
|
info = "foam";
|
||||||
}
|
pointer = "iris";
|
||||||
);
|
marker = "love";
|
||||||
|
prompt = "subtle";
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ in {
|
||||||
lib.mkOption {
|
lib.mkOption {
|
||||||
inherit type;
|
inherit type;
|
||||||
default = config.rose-pine.${attr};
|
default = config.rose-pine.${attr};
|
||||||
description = "Rose Pine ${attr} for ${name}";
|
description = "Rosé Pine ${attr} for ${name}";
|
||||||
};
|
};
|
||||||
|
|
||||||
# string -> a
|
# string -> a
|
||||||
|
|
Loading…
Reference in a new issue