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}.",
|
description ? "Enable ${name}.",
|
||||||
serverName ? name,
|
serverName ? name,
|
||||||
package ? pkgs.${name},
|
package ? pkgs.${name},
|
||||||
|
url ? package.meta.homepage or null,
|
||||||
cmd ? (cfg: null),
|
cmd ? (cfg: null),
|
||||||
settings ? (cfg: cfg),
|
settings ? (cfg: cfg),
|
||||||
settingsOptions ? { },
|
settingsOptions ? { },
|
||||||
|
@ -30,6 +31,17 @@ let
|
||||||
cfg = config.plugins.lsp.servers.${name};
|
cfg = config.plugins.lsp.servers.${name};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
meta.nixvimInfo = {
|
||||||
|
# TODO: description
|
||||||
|
inherit url;
|
||||||
|
path = [
|
||||||
|
"plugins"
|
||||||
|
"lsp"
|
||||||
|
"servers"
|
||||||
|
name
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
plugins.lsp.servers.${name} = {
|
plugins.lsp.servers.${name} = {
|
||||||
enable = mkEnableOption description;
|
enable = mkEnableOption description;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue