2024-05-30 16:54:58 -03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
2022-11-07 11:24:40 -03:00
|
|
|
let
|
2024-06-05 01:18:48 -03:00
|
|
|
inherit (config.my)
|
2024-05-30 16:54:58 -03:00
|
|
|
key
|
|
|
|
theme
|
|
|
|
accent
|
|
|
|
font
|
|
|
|
;
|
2023-01-24 11:42:49 -03:00
|
|
|
inherit (theme) color;
|
2022-10-24 20:36:18 -03:00
|
|
|
|
|
|
|
colors = {
|
|
|
|
"bg+" = color.bg_light;
|
|
|
|
"hl+" = color.normal.green;
|
|
|
|
gutter = color.bg;
|
|
|
|
prompt = accent.color;
|
|
|
|
pointer = accent.color;
|
|
|
|
spinner = accent.color;
|
|
|
|
};
|
|
|
|
makeKeyValue = (k: v: "${k}:${v}");
|
|
|
|
makeOptList = lib.mapAttrsToList makeKeyValue colors;
|
|
|
|
makeColorValue = lib.strings.concatStringsSep "," makeOptList;
|
|
|
|
color_opts = "--color=${makeColorValue}";
|
2024-05-30 16:54:58 -03:00
|
|
|
preview_opts = "--preview '${pkgs.bat}/bin/bat --style=numbers --color=always {}'";
|
2023-01-22 18:12:04 -03:00
|
|
|
in
|
|
|
|
{
|
2022-10-24 20:36:18 -03:00
|
|
|
programs.fzf = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
fileWidgetCommand = "${pkgs.fd}/bin/fd --type f";
|
2024-05-30 16:54:58 -03:00
|
|
|
fileWidgetOptions = [ "--preview '${pkgs.bat}/bin/bat --style=numbers --color=always {}'" ];
|
2022-10-24 20:36:18 -03:00
|
|
|
|
|
|
|
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
|
2024-05-30 16:54:58 -03:00
|
|
|
changeDirWidgetOptions = [ "--preview '${pkgs.eza}/bin/eza -T L3 | head -200'" ];
|
2022-10-24 20:36:18 -03:00
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
defaultOptions = [
|
|
|
|
color_opts
|
|
|
|
preview_opts
|
|
|
|
];
|
2022-10-24 20:36:18 -03:00
|
|
|
};
|
|
|
|
}
|