mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 03:34:31 +02:00
plugins/by-name: init
Add support for automatically importing any directories under `plugins/by-name`. Includes a validation test, which is run by CI and by the pre-commit hook.
This commit is contained in:
parent
6df273540c
commit
faff32b9f1
5 changed files with 186 additions and 9 deletions
|
@ -77,6 +77,16 @@
|
|||
args = [ ".#checks.${system}.maintainers" ];
|
||||
pass_filenames = false;
|
||||
};
|
||||
plugins-by-name = {
|
||||
enable = true;
|
||||
name = "plugins-by-name";
|
||||
description = "Check `plugins/by-name` when it's modified.";
|
||||
files = "^(?:tests/test-sources/)?plugins/by-name/";
|
||||
package = pkgs.nix;
|
||||
entry = "nix build --no-link --print-build-logs";
|
||||
args = [ ".#checks.${system}.plugins-by-name" ];
|
||||
pass_filenames = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
|
||||
maintainers = import ../tests/maintainers.nix { inherit pkgs; };
|
||||
|
||||
plugins-by-name = pkgs.callPackage ../tests/plugins-by-name.nix { inherit evaluatedNixvim; };
|
||||
|
||||
generated = pkgs.callPackage ../tests/generated.nix { };
|
||||
|
||||
package-options = pkgs.callPackage ../tests/package-options.nix { inherit evaluatedNixvim; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue