Fixes to FZF and ZSH configuration

This commit is contained in:
Marko Korhonen 2024-09-28 20:04:56 +03:00
parent 37656a1c6b
commit f0daaba8a7
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 11 additions and 8 deletions

View file

@ -4,12 +4,15 @@
programs.fzf = {
enable = true;
enableZshIntegration = true;
defaultCommand = "fd -Hlt f";
defaultOptions = [ "-m --ansi --bind ctrl-a:toggle-all,ctrl-d:deselect-all,ctrl-t:toggle-all" ];
fileWidgetCommand = "fd -Hlt f --strip-cwd-prefix";
fileWidgetOptions = [ "--preview 'bat --color=always --style=numbers --line-range=:500 {}" ];
changeDirWidgetCommand = "fd -Hlt d";
defaultCommand = "fd -Ht f";
defaultOptions = [
"-m"
"--ansi"
"--bind ctrl-a:toggle-all,ctrl-d:deselect-all,ctrl-t:toggle-all"
];
fileWidgetCommand = "fd -Ht f --strip-cwd-prefix";
fileWidgetOptions = [ "--preview 'bat --color=always --style=numbers --line-range=:500 {}'" ];
changeDirWidgetCommand = "fd -Ht d";
changeDirWidgetOptions = [ "--preview 'eza -l {}'" ];
};
}