1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2026-01-19 19:51:11 +00:00
ncc/modules/ripgrep.mod.nix
2025-10-16 22:43:02 +03:00

23 lines
482 B
Nix

{
homeModules.ripgrep =
{ lib, pkgs, ... }:
let
inherit (lib.meta) getExe;
inherit (lib.strings) concatLines;
package = pkgs.ripgrep;
in
{
package = [
package
];
programs.nushell.aliases.todo = # sh
''${getExe package} "todo|fixme" --colors match:fg:yellow --colors match:style:bold'';
xdg.config."ripgrep/ripgreprc".text = concatLines [
"--line-number"
"--smart-case"
];
};
}