Add preview commands to fzf widgets

This commit is contained in:
Evie Litherland-Smith 2025-01-22 06:39:08 +00:00
parent 3626eee4bc
commit 4ccd7e80cf

View file

@ -98,7 +98,9 @@
enable = true;
defaultCommand = "${pkgs.fd}/bin/fd --type f";
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
changeDirWidgetOptions = [ "--preview '${pkgs.tree}/bin/tree -C {} | head -200'" ];
fileWidgetCommand = "${pkgs.fd}/bin/fd --type f";
fileWidgetOptions = [ "--preview '${pkgs.bat}/bin/bat -f {}'" ];
colors = {
bg = lib.mkForce "-1";
"bg+" = lib.mkForce "-1";