fzf: Add better default commands and options
This commit is contained in:
parent
b6297d0153
commit
6459a2a7ef
|
@ -72,7 +72,6 @@ in
|
|||
libnotify # notify-send
|
||||
|
||||
# function eye candy
|
||||
fzf # fuzzy finder
|
||||
pv # monitor progress in pipe
|
||||
|
||||
# end user programs
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue