28 lines
512 B
Nix
28 lines
512 B
Nix
|
|
{
|
||
|
|
options,
|
||
|
|
config,
|
||
|
|
lib,
|
||
|
|
pkgs,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
with lib;
|
||
|
|
with lib.custom; let
|
||
|
|
cfg = config.apps.tools.skim;
|
||
|
|
in {
|
||
|
|
options.apps.tools.skim = with types; {
|
||
|
|
enable = mkBoolOpt false "Enable Skim";
|
||
|
|
};
|
||
|
|
|
||
|
|
config = mkIf cfg.enable {
|
||
|
|
programs.skim = {
|
||
|
|
enable = true;
|
||
|
|
enableZshIntegration = true;
|
||
|
|
defaultCommand = "rg --files --hidden";
|
||
|
|
changeDirWidgetOptions = [
|
||
|
|
"--preview 'eza --icons --git --color always -T -L 3 {} | head -200'"
|
||
|
|
"--exact"
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|