mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
docs: Allow to add an url in the online documentation (#1139)
* plugin/committia: Use correct maintainers import * plugins/neocord: Remove redyf as the entry is not in the list * docs: Allow to add an URL to the plugin
This commit is contained in:
parent
9d30e87455
commit
82a24d0d42
6 changed files with 88 additions and 6 deletions
|
@ -34,6 +34,7 @@ with lib; rec {
|
|||
name,
|
||||
namespace ? "plugins",
|
||||
maintainers,
|
||||
url ? defaultPackage.meta.homepage,
|
||||
imports ? [],
|
||||
# deprecations
|
||||
deprecateExtraOptions ? false,
|
||||
|
@ -51,7 +52,13 @@ with lib; rec {
|
|||
extraPackages ? [],
|
||||
callSetup ? true,
|
||||
}: {
|
||||
meta.maintainers = maintainers;
|
||||
meta = {
|
||||
inherit maintainers;
|
||||
nixvimInfo = {
|
||||
inherit name url;
|
||||
kind = namespace;
|
||||
};
|
||||
};
|
||||
|
||||
imports = let
|
||||
basePluginPath = [namespace name];
|
||||
|
|
|
@ -7,6 +7,10 @@ with lib; {
|
|||
mkVimPlugin = config: {
|
||||
name,
|
||||
namespace ? "plugins",
|
||||
url ?
|
||||
if defaultPackage != null
|
||||
then defaultPackage.meta.homepage
|
||||
else null,
|
||||
maintainers ? [],
|
||||
imports ? [],
|
||||
# deprecations
|
||||
|
@ -80,7 +84,13 @@ with lib; {
|
|||
};
|
||||
};
|
||||
in {
|
||||
meta.maintainers = maintainers;
|
||||
meta = {
|
||||
inherit maintainers;
|
||||
nixvimInfo = {
|
||||
inherit name url;
|
||||
kind = namespace;
|
||||
};
|
||||
};
|
||||
options.${namespace}.${name} =
|
||||
{
|
||||
enable = mkEnableOption originalName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue