mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
31 lines
954 B
Nix
31 lines
954 B
Nix
{ ... }:
|
|
|
|
let
|
|
fdOptions = "--follow --exclude .git --exclude node_modules";
|
|
in
|
|
{
|
|
programs.fzf = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableZshIntegration = true;
|
|
enableFishIntegration = true;
|
|
|
|
defaultCommand = "git ls-files --cached --others --exclude-standard | fd --hidden --type f --type l ${fdOptions}";
|
|
defaultOptions = [ "--no-height" ];
|
|
|
|
changeDirWidgetCommand = "fd --type d ${fdOptions} --color=never --hidden";
|
|
changeDirWidgetOptions = [ "--preview 'tree -C {} | head -50'" ];
|
|
|
|
fileWidgetCommand = "git ls-files --cached --others --exclude-standard | fd --hidden --type f --type l ${fdOptions}";
|
|
fileWidgetOptions = [
|
|
"--preview 'bat --color=always --style=numbers {}'"
|
|
"--bind shift-up:preview-page-up,shift-down:preview-page-down"
|
|
];
|
|
|
|
historyWidgetOptions = [ "--reverse" ];
|
|
|
|
tmux.enableShellIntegration = true;
|
|
tmux.shellIntegrationOptions = [ "-p" ];
|
|
};
|
|
}
|