Move fzf and eza settings to home-manager configuration
This commit is contained in:
parent
4c13fa2dcc
commit
b985074ee3
1 changed files with 17 additions and 11 deletions
|
@ -8,16 +8,13 @@
|
|||
stateVersion = "24.05";
|
||||
|
||||
packages = with pkgs; [
|
||||
bat
|
||||
cargo
|
||||
eza
|
||||
fd
|
||||
gcc
|
||||
grc
|
||||
neovide
|
||||
nerdfonts
|
||||
nodejs
|
||||
ripgrep
|
||||
trash-cli
|
||||
tree-sitter
|
||||
usbutils
|
||||
|
@ -47,6 +44,7 @@
|
|||
enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
enableCompletion = false;
|
||||
defaultKeymap = "vicmd";
|
||||
zplug = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
|
@ -70,14 +68,6 @@
|
|||
export PURE_PROMPT_VICMD_SYMBOL="y"
|
||||
|
||||
# fzf settings
|
||||
export FD_COMMAND='fd -HLt'
|
||||
export FZF_DEFAULT_COMMAND="$FD_COMMAND f"
|
||||
export FZF_ALT_C_COMMAND="$FD_COMMAND d"
|
||||
export FZF_ALT_C_OPTS="--preview 'eza -l {}'"
|
||||
export FZF_DEFAULT_OPTS='-m --ansi --bind ctrl-a:toggle-all,ctrl-d:deselect-all,ctrl-t:toggle-all'
|
||||
export FZF_COMPLETION_TRIGGER='**'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND --strip-cwd-prefix"
|
||||
export FZF_CTRL_T_OPTS='--preview "bat --color=always --style=numbers --line-range=:500 {}"'
|
||||
_fzf_compgen_path() {
|
||||
resultcmd="$FZF_DEFAULT_COMMAND . $1"
|
||||
eval "''${resultcmd}
|
||||
|
@ -165,6 +155,12 @@
|
|||
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";
|
||||
changeDirWidgetOptions = "--preview 'eza -l {}'";
|
||||
};
|
||||
|
||||
git = {
|
||||
|
@ -278,5 +274,15 @@
|
|||
enable = true;
|
||||
browsers = [ "firefox" ];
|
||||
};
|
||||
|
||||
|
||||
eza = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
extraOptions = [ "--git" "--icons" ];
|
||||
};
|
||||
|
||||
ripgrep.enable = true;
|
||||
bat.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue