Fixes to FZF and ZSH configuration
This commit is contained in:
parent
37656a1c6b
commit
f0daaba8a7
2 changed files with 11 additions and 8 deletions
|
@ -4,12 +4,15 @@
|
||||||
programs.fzf = {
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
defaultCommand = "fd -Hlt f";
|
defaultCommand = "fd -Ht f";
|
||||||
defaultOptions = [ "-m --ansi --bind ctrl-a:toggle-all,ctrl-d:deselect-all,ctrl-t:toggle-all" ];
|
defaultOptions = [
|
||||||
fileWidgetCommand = "fd -Hlt f --strip-cwd-prefix";
|
"-m"
|
||||||
fileWidgetOptions = [ "--preview 'bat --color=always --style=numbers --line-range=:500 {}" ];
|
"--ansi"
|
||||||
changeDirWidgetCommand = "fd -Hlt d";
|
"--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 {}'" ];
|
changeDirWidgetOptions = [ "--preview 'eza -l {}'" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,11 +31,11 @@
|
||||||
# fzf settings
|
# fzf settings
|
||||||
_fzf_compgen_path() {
|
_fzf_compgen_path() {
|
||||||
resultcmd="$FZF_DEFAULT_COMMAND . $1"
|
resultcmd="$FZF_DEFAULT_COMMAND . $1"
|
||||||
eval "''${resultcmd}
|
eval "''${resultcmd}"
|
||||||
}
|
}
|
||||||
_fzf_compgen_dir() {
|
_fzf_compgen_dir() {
|
||||||
resultcmd="$FZF_ALT_C_COMMAND . $1"
|
resultcmd="$FZF_ALT_C_COMMAND . $1"
|
||||||
eval "''${resultcmd}
|
eval "''${resultcmd}"
|
||||||
}
|
}
|
||||||
# nvim ftw!
|
# nvim ftw!
|
||||||
export PAGER="$EDITOR -R +\"lua require 'pager'\""
|
export PAGER="$EDITOR -R +\"lua require 'pager'\""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue