aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAshkan Kiani <ashkan.k.kiani@gmail.com>2019-11-17 13:52:21 -0800
committerGitHub <noreply@github.com>2019-11-17 13:52:21 -0800
commit0d30787a47b4f4d04d5a08fe6eadf309c8e055b7 (patch)
tree0912925a177bb51c87a849a252cebe9ffd389e63 /scripts
parentChange root_dir for single instance servers (#33) (diff)
downloadnvim-lspconfig-0d30787a47b4f4d04d5a08fe6eadf309c8e055b7.tar
nvim-lspconfig-0d30787a47b4f4d04d5a08fe6eadf309c8e055b7.tar.gz
nvim-lspconfig-0d30787a47b4f4d04d5a08fe6eadf309c8e055b7.tar.bz2
nvim-lspconfig-0d30787a47b4f4d04d5a08fe6eadf309c8e055b7.tar.lz
nvim-lspconfig-0d30787a47b4f4d04d5a08fe6eadf309c8e055b7.tar.xz
nvim-lspconfig-0d30787a47b4f4d04d5a08fe6eadf309c8e055b7.tar.zst
nvim-lspconfig-0d30787a47b4f4d04d5a08fe6eadf309c8e055b7.zip
Add package_json for pyls and update docgen (#32)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/docgen.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/docgen.lua b/scripts/docgen.lua
index d13dd14d..4239ff47 100644
--- a/scripts/docgen.lua
+++ b/scripts/docgen.lua
@@ -152,6 +152,7 @@ local function make_lsp_sections()
if not default_settings.properties then return end
-- The outer section.
return make_section(0, '\n', {
+ 'This server accepts configuration via the `settings` key.';
'<details><summary>'..(default_settings.title or "Available settings:")..'</summary>';
'';
-- The list of properties.
@@ -173,7 +174,9 @@ local function make_lsp_sections()
end;
});
'';
- make_section(2, '\n', {
+ make_section(2, '\n\n', {
+ {v.default and "Default: "..tick(inspect(v.default, {newline='';indent=''}))};
+ {v.items and "Array items: "..tick(inspect(v.items, {newline='';indent=''}))};
{v.description};
});
})