From 0d30787a47b4f4d04d5a08fe6eadf309c8e055b7 Mon Sep 17 00:00:00 2001 From: Ashkan Kiani Date: Sun, 17 Nov 2019 13:52:21 -0800 Subject: Add package_json for pyls and update docgen (#32) --- scripts/docgen.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') 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.'; '
'..(default_settings.title or "Available settings:")..''; ''; -- 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}; }); }) -- cgit v1.2.3-70-g09d2