mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 01:04:34 +02:00
modules/dependencies: add ripgrep
This commit is contained in:
parent
238ffa110a
commit
d6cdbf36b2
7 changed files with 54 additions and 59 deletions
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -13,6 +12,19 @@ mkExtension {
|
|||
extensionName = "live_grep_args";
|
||||
package = "telescope-live-grep-args-nvim";
|
||||
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = [
|
||||
"telescope"
|
||||
"extensions"
|
||||
"live-grep-args"
|
||||
];
|
||||
packageName = "ripgrep";
|
||||
oldPackageName = "grep";
|
||||
})
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
auto_quoting = defaultNullOpts.mkBool true ''
|
||||
Enable or disable auto quoting of searches.
|
||||
|
@ -56,14 +68,7 @@ mkExtension {
|
|||
theme = "dropdown";
|
||||
};
|
||||
|
||||
extraOptions = {
|
||||
grepPackage = lib.mkPackageOption pkgs "ripgrep" {
|
||||
nullable = true;
|
||||
example = "pkgs.gnugrep";
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.grepPackage ];
|
||||
extraConfig = {
|
||||
dependencies.ripgrep.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue