mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 02:34:15 -05:00
plugins/gitgutter: drop grep
https://github.com/airblade/vim-gitgutter/commit/0acb772e76064cc406664ab595b58b3fac76488a
This commit is contained in:
committed by
Gaétan Lepage
parent
9f310be2da
commit
d524dbd333
@@ -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 = {
|
||||
|
||||
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user