docs/lsp: Show LSP server homepage URLs

Using `meta.nixvimInfo`
This commit is contained in:
Matt Sturgeon 2024-06-07 21:33:16 +01:00
parent f34fda8d99
commit 2ce578e35f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -10,6 +10,7 @@
description ? "Enable ${name}.",
serverName ? name,
package ? pkgs.${name},
url ? package.meta.homepage or null,
cmd ? (cfg: null),
settings ? (cfg: cfg),
settingsOptions ? { },
@ -30,6 +31,17 @@ let
cfg = config.plugins.lsp.servers.${name};
in
{
meta.nixvimInfo = {
# TODO: description
inherit url;
path = [
"plugins"
"lsp"
"servers"
name
];
};
options = {
plugins.lsp.servers.${name} = {
enable = mkEnableOption description;