Add preview commands to fzf widgets
This commit is contained in:
parent
3626eee4bc
commit
4ccd7e80cf
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue