Nix configurations for my personal machines (Linux & macOS)
at main 975 B view raw
1{delib, ...}: 2delib.module { 3 name = "programs.fzf"; 4 5 home.always = { 6 # TODO 7 # Investigate preview stuff as default command 8 # https://github.com/kidonng/preview.fish 9 # Explore fzf search modes 10 programs.fzf = { 11 enable = true; 12 enableFishIntegration = false; 13 defaultOptions = [ 14 "--ansi" 15 "--cycle" 16 "--layout=reverse" 17 "--border" 18 "--height=90%" 19 "--marker=\"*\"" 20 "--preview 'bat --color=always --style=header,numbers --line-range :300 {}'" 21 # I usually use a vertical term so this is more practical. 22 # TODO: possible to dynamically change based on terminal dimensinns? 23 "--preview-window='bottom:50%:wrap'" 24 ]; 25 # TODO: only if fd config is enabled 26 defaultCommand = "fd --color=always --type file --follow --hidden --exclude .git --exclude node_modules"; 27 }; 28 29 home.sessionVariables.FZF_CTRL_T_COMMAND = "fd --color=always --follow"; 30 }; 31}