mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
parent
d8a86e9b3f
commit
c73bef16ab
61 changed files with 112 additions and 263 deletions
|
@ -92,6 +92,12 @@ rec {
|
|||
mkEnumFirstDefault = enum: mkEnum enum (head enum);
|
||||
};
|
||||
|
||||
mkPackageOption = name: default: mkOption {
|
||||
type = types.package;
|
||||
inherit default;
|
||||
description = "Plugin to use for ${name}";
|
||||
};
|
||||
|
||||
mkPlugin = { config, lib, ... }: { name
|
||||
, description
|
||||
, package ? null
|
||||
|
@ -112,11 +118,7 @@ rec {
|
|||
options;
|
||||
# does this evaluate package?
|
||||
packageOption = if package == null then { } else {
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = package;
|
||||
description = "Plugin to use for ${name}";
|
||||
};
|
||||
package = mkPackageOption name package;
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue