fzf: Add better default commands and options

This commit is contained in:
Simon Bruder 2021-04-01 14:43:16 +02:00
parent b6297d0153
commit 6459a2a7ef
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 14 additions and 2 deletions

View file

@ -72,7 +72,6 @@ in
libnotify # notify-send
# function eye candy
fzf # fuzzy finder
pv # monitor progress in pipe
# end user programs

View file

@ -11,7 +11,20 @@ let
in
{
programs = {
fzf.enable = true;
fzf = {
enable = true;
changeDirWidgetCommand = "fd --color always --type d";
changeDirWidgetOptions = [ "--preview 'exa --tree --color=always -L 4 {}'" ];
defaultCommand = "fd --color always";
defaultOptions = [
"--ansi"
"--color=bg+:#073642,bg:#002b36,spinner:#2aa198,hl:#268bd2"
"--color=fg:#839496,header:#268bd2,info:#b58900,pointer:#2aa198"
"--color=marker:#2aa198,fg+:#eee8d5,prompt:#b58900,hl+:#268bd2"
];
fileWidgetCommand = "fd --color always --type f";
fileWidgetOptions = [ "--preview 'head -n 100 {}'" ];
};
direnv = {
enable = true;
enableNixDirenvIntegration = true;