mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
2951946183
* ripgrep: add module * ripgrep: Apply suggestions from code review Co-authored-by: Naïm Favier <n@monade.li> * ripgrep: fix maintainers Co-authored-by: Naïm Favier <n@monade.li> * ripgrep: rename config into arguments --------- Co-authored-by: Naïm Favier <n@monade.li>
24 lines
601 B
Nix
24 lines
601 B
Nix
{ pkgs, config, ... }: {
|
|
config = {
|
|
programs.ripgrep = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { name = "ripgrep"; };
|
|
arguments = [
|
|
"--max-columns-preview"
|
|
"--colors=line:style:bold"
|
|
"--no-require-git"
|
|
];
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/ripgrep/ripgreprc
|
|
assertFileContent home-files/.config/ripgrep/ripgreprc ${
|
|
pkgs.writeText "ripgrep.expected" ''
|
|
--max-columns-preview
|
|
--colors=line:style:bold
|
|
--no-require-git
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|