mirror of
https://github.com/danth/stylix
synced 2024-11-22 12:13:08 +00:00
Add fzf module (#84)
This commit is contained in:
parent
5925e3da17
commit
7e70eedc49
1 changed files with 29 additions and 0 deletions
29
modules/fzf/hm.nix
Normal file
29
modules/fzf/hm.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
let
|
||||
mkFzfKeyValue = lib.generators.mkKeyValueDefault { } ":";
|
||||
|
||||
colorConfig = with config.lib.stylix.colors.withHashtag;
|
||||
lib.concatStringsSep "," (lib.mapAttrsToList mkFzfKeyValue {
|
||||
"bg" = base00;
|
||||
"bg+" = base01;
|
||||
"fg" = base04;
|
||||
"fg+" = base06;
|
||||
"header" = base0D;
|
||||
"hl" = base0D;
|
||||
"hl+" = base0D;
|
||||
"info" = base0A;
|
||||
"marker" = base0C;
|
||||
"pointer" = base0C;
|
||||
"prompt" = base0A;
|
||||
"spinner" = base0C;
|
||||
});
|
||||
in
|
||||
{
|
||||
options.stylix.targets.fzf = {
|
||||
enable = config.lib.stylix.mkEnableTarget "Fzf" config.programs.fzf.enable;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.stylix.targets.fzf.enable {
|
||||
programs.fzf.defaultOptions = lib.mkAfter [ "--color=${colorConfig}" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue