plugins: remove all use of lib.nixvim.mkPackageOption

This commit is contained in:
Matt Sturgeon 2024-09-03 15:40:46 +01:00
parent 84676128f8
commit ae3a2c9d10
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
28 changed files with 73 additions and 95 deletions

View file

@ -16,11 +16,14 @@ helpers.neovim-plugin.mkNeovimPlugin {
];
extraOptions = {
# TODO: should this enable option be replaced with `nullable = true` in the package option?
installArtifacts = mkEnableOption "and install coq-artifacts";
artifactsPackage = mkOption {
type = types.package;
description = "Package to use for coq-artifacts (when enabled with installArtifacts)";
default = pkgs.vimPlugins.coq-artifacts;
artifactsPackage = mkPackageOption pkgs "coq-artifacts" {
extraDescription = "Installed when `installArtifacts` is enabled.";
default = [
"vimPlugins"
"coq-artifacts"
];
};
};