feat: make ripgrep config

This commit is contained in:
matt1432 2023-10-15 16:16:31 -04:00
parent 0aaf7d522b
commit 26e3837f62
2 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# Home-manager module # Home-manager module
{ lib, ... }: { { config, lib, ... }: {
imports = [ imports = [
./programs.nix ./programs.nix
]; ];
@ -144,7 +144,9 @@
jelly = "mosh matt@10.0.0.121 -- ssh -t matt@10.0.0.123 'tmux -2u new -At laptop'"; jelly = "mosh matt@10.0.0.121 -- ssh -t matt@10.0.0.123 'tmux -2u new -At laptop'";
qbit = "mosh matt@10.0.0.121 -- ssh -t matt@10.0.0.128 'tmux -2u new -At laptop'"; qbit = "mosh matt@10.0.0.121 -- ssh -t matt@10.0.0.128 'tmux -2u new -At laptop'";
}; };
sessionVariables = { # see configuration.nix sessionVariables = {
# FIXME: why is this not set by home-manager?
"RIPGREP_CONFIG_PATH" = "${config.xdg.configHome}/ripgrep/ripgreprc";
}; };
profileExtra = '' profileExtra = ''

View file

@ -7,7 +7,11 @@
ripgrep = { ripgrep = {
enable = true; enable = true;
arguments = [ arguments = [
"--no-config" "--max-columns=150"
"--max-columns-preview"
"--hidden"
"--glob=!.git/*"
"--smart-case"
]; ];
}; };
jq.enable = true; jq.enable = true;