1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-18 15:01:13 +01:00

plugins/gitgutter: drop grep

0acb772e76
This commit is contained in:
Gaetan Lepage 2025-12-15 09:54:35 +01:00 committed by Gaétan Lepage
parent 9f310be2da
commit d524dbd333
2 changed files with 5 additions and 26 deletions

View file

@ -9,14 +9,13 @@ lib.nixvim.plugins.mkVimPlugin {
dependencies = [ dependencies = [
"git" "git"
"grep"
]; ];
imports = [ imports = [
(lib.nixvim.mkRemovedPackageOptionModule { # Added 2025-12-15, remove after 26.05
plugin = "gitgutter"; (lib.mkRemovedOptionModule [ "plugins" "gitgutter" "grepPackage" ] ''
packageName = "grep"; Gitgutter no longer requires grep.
}) '')
]; ];
extraOptions = { extraOptions = {

View file

@ -15,7 +15,6 @@
diff_args = ""; diff_args = "";
diff_relative_to = "index"; diff_relative_to = "index";
diff_base = ""; diff_base = "";
grep = "grep";
signs = true; signs = true;
highlight_lines = false; highlight_lines = false;
highlight_linenrs = false; highlight_linenrs = false;
@ -63,21 +62,6 @@
}; };
}; };
grep-command =
{ config, ... }:
{
plugins.gitgutter = {
enable = true;
};
assertions = [
{
assertion =
config.extraPackages != [ ] && lib.any (x: x.pname or null == "gnugrep") config.extraPackages;
message = "gnugrep wasn't found when it was expected";
}
];
};
no-packages = no-packages =
{ config, ... }: { config, ... }:
{ {
@ -85,14 +69,10 @@
enable = true; enable = true;
settings = { settings = {
git_executable = lib.getExe pkgs.git; git_executable = lib.getExe pkgs.git;
grep = lib.getExe pkgs.gnugrep;
}; };
}; };
dependencies = { dependencies.git.enable = false;
git.enable = false;
grep.enable = false;
};
assertions = [ assertions = [
{ {