diff options
| author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-17 13:52:21 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-17 13:52:21 -0800 |
| commit | 0d30787a47b4f4d04d5a08fe6eadf309c8e055b7 (patch) | |
| tree | 0912925a177bb51c87a849a252cebe9ffd389e63 /scripts/docgen.lua | |
| parent | Change root_dir for single instance servers (#33) (diff) | |
| download | nvim-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/docgen.lua')
| -rw-r--r-- | scripts/docgen.lua | 5 |
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}; }); }) |
