plugins/git: move to by-name

This commit is contained in:
Matt Sturgeon 2024-09-05 02:39:54 +01:00
parent d016b139fc
commit 2a91b89445
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
29 changed files with 0 additions and 15 deletions

View file

@ -1,41 +0,0 @@
{ lib, pkgs, ... }:
{
empty = {
plugins.gitgutter.enable = true;
};
grep-command =
{ config, ... }:
{
plugins.gitgutter = {
enable = true;
grep = {
package = pkgs.gnugrep;
command = "";
};
};
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, ... }:
{
globals.gitgutter_git_executable = lib.getExe pkgs.git;
plugins.gitgutter = {
enable = true;
gitPackage = null;
};
assertions = [
{
assertion = lib.all (x: x.pname or null != "git") config.extraPackages;
message = "A git package found in extraPackages when it wasn't expected";
}
];
};
}