fzf: Get solarized colors from common.nix

This commit is contained in:
Simon Bruder 2021-07-25 09:13:22 +02:00
parent a67ec1b22f
commit 4fc2015ee9
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,5 +1,7 @@
{ lib, nixosConfig, pkgs, ... }: { lib, nixosConfig, pkgs, ... }:
let let
solarized = (import ../common.nix).colorschemes.solarized;
dircolors-solarized = pkgs.fetchFromGitHub { dircolors-solarized = pkgs.fetchFromGitHub {
owner = "seebi"; owner = "seebi";
repo = "dircolors-solarized"; repo = "dircolors-solarized";
@ -26,9 +28,24 @@ in
defaultCommand = "fd --color always"; defaultCommand = "fd --color always";
defaultOptions = [ defaultOptions = [
"--ansi" "--ansi"
"--color=bg+:#073642,bg:#002b36,spinner:#2aa198,hl:#268bd2" "--color=${lib.concatStringsSep
"--color=fg:#839496,header:#268bd2,info:#b58900,pointer:#2aa198" ","
"--color=marker:#2aa198,fg+:#eee8d5,prompt:#b58900,hl+:#268bd2" (lib.mapAttrsToList
(n: v: "${n}:${v}")
(with solarized; {
"bg" = base03;
"bg+" = base02;
"fg" = base0;
"fg+" = base2;
"header" = blue;
"hl" = blue;
"hl+" = blue;
"info" = yellow;
"marker" = cyan;
"pointer" = cyan;
"prompt" = yellow;
"spinner" = cyan;
}))}"
]; ];
fileWidgetCommand = "fd --color always --type f"; fileWidgetCommand = "fd --color always --type f";
fileWidgetOptions = [ "--preview 'head -n 100 {}'" ]; fileWidgetOptions = [ "--preview 'head -n 100 {}'" ];