mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
wrappers: add meta.wrappers
options to wrappers
Allows the docs to be a little less hard-coded. Lays the groundwork for splitting up the platform-specific option docs on a per-page basis.
This commit is contained in:
parent
574ae92a43
commit
b076f006c6
6 changed files with 48 additions and 16 deletions
|
@ -1,3 +1,7 @@
|
|||
{
|
||||
imports = [ ./shared.nix ];
|
||||
|
||||
config = {
|
||||
meta.wrapper.name = "nix-darwin";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,5 +17,6 @@
|
|||
config = {
|
||||
wrapRc = lib.mkOptionDefault false;
|
||||
impureRtp = lib.mkOptionDefault true;
|
||||
meta.wrapper.name = "home-manager";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,4 +5,8 @@
|
|||
};
|
||||
|
||||
imports = [ ./shared.nix ];
|
||||
|
||||
config = {
|
||||
meta.wrapper.name = "NixOS";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,5 +2,13 @@
|
|||
{
|
||||
options = {
|
||||
enable = lib.mkEnableOption "nixvim";
|
||||
|
||||
meta.wrapper = {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The human-readable name of this nixvim wrapper. Used in documentation.";
|
||||
internal = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue