1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-16 22:11:09 +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 = [
"git"
"grep"
];
imports = [
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "gitgutter";
packageName = "grep";
})
# Added 2025-12-15, remove after 26.05
(lib.mkRemovedOptionModule [ "plugins" "gitgutter" "grepPackage" ] ''
Gitgutter no longer requires grep.
'')
];
extraOptions = {

View file

@ -15,7 +15,6 @@
diff_args = "";
diff_relative_to = "index";
diff_base = "";
grep = "grep";
signs = true;
highlight_lines = 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 =
{ config, ... }:
{
@ -85,14 +69,10 @@
enable = true;
settings = {
git_executable = lib.getExe pkgs.git;
grep = lib.getExe pkgs.gnugrep;
};
};
dependencies = {
git.enable = false;
grep.enable = false;
};
dependencies.git.enable = false;
assertions = [
{