WIP: Switch to NixOS #5
1 changed files with 17 additions and 11 deletions
|
@ -8,16 +8,13 @@
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
bat
|
|
||||||
cargo
|
cargo
|
||||||
eza
|
|
||||||
fd
|
fd
|
||||||
gcc
|
gcc
|
||||||
grc
|
grc
|
||||||
neovide
|
neovide
|
||||||
nerdfonts
|
nerdfonts
|
||||||
nodejs
|
nodejs
|
||||||
ripgrep
|
|
||||||
trash-cli
|
trash-cli
|
||||||
tree-sitter
|
tree-sitter
|
||||||
usbutils
|
usbutils
|
||||||
|
@ -47,6 +44,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
enableCompletion = false;
|
enableCompletion = false;
|
||||||
|
defaultKeymap = "vicmd";
|
||||||
zplug = {
|
zplug = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
|
@ -70,14 +68,6 @@
|
||||||
export PURE_PROMPT_VICMD_SYMBOL="y"
|
export PURE_PROMPT_VICMD_SYMBOL="y"
|
||||||
|
|
||||||
# fzf settings
|
# 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() {
|
_fzf_compgen_path() {
|
||||||
resultcmd="$FZF_DEFAULT_COMMAND . $1"
|
resultcmd="$FZF_DEFAULT_COMMAND . $1"
|
||||||
eval "''${resultcmd}
|
eval "''${resultcmd}
|
||||||
|
@ -165,6 +155,12 @@
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = 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 = {
|
git = {
|
||||||
|
@ -278,5 +274,15 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
browsers = [ "firefox" ];
|
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