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:
traxys 2024-02-20 21:20:59 +01:00 committed by GitHub
parent 9d30e87455
commit 82a24d0d42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 88 additions and 6 deletions

View file

@ -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;