mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 12:14:32 +02:00
docs/lsp: Show LSP server homepage URLs
Using `meta.nixvimInfo`
This commit is contained in:
parent
f34fda8d99
commit
2ce578e35f
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue