1
mirror of https://github.com/wlcx/home.git synced 2025-12-10 12:33:45 +00:00

fzf: get files from fd to respect gitignore when ctrl-ting

This commit is contained in:
Sam W 2025-12-05 15:43:35 +00:00
parent 1e8b5ebb0d
commit b3fedf3584

View File

@ -55,9 +55,6 @@ in {
# Don't honk at me constantly # Don't honk at me constantly
unsetopt beep unsetopt beep
''; '';
envExtra = ''
export FZF_DEFAULT_COMMAND='${pkgs.fd}/bin/fd --type f --strip-cwd-prefix'
'';
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
plugins = [ plugins = [
{ {
@ -95,7 +92,8 @@ in {
fzf = { fzf = {
enable = true; enable = true;
defaultCommand = "${pkgs.ripgrep}/bin/rg --files"; defaultCommand = "${pkgs.fd}/bin/fd --type f";
fileWidgetCommand = "${pkgs.fd}/bin/fd --type f";
}; };
ssh = { ssh = {