diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2024-10-02 02:50:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-02 02:50:41 -0700 |
| commit | ae7698f4fe9a054c2427a8f5612422c9d6426b74 (patch) | |
| tree | 26d5c6495f78f0800f2c58f4011dbe7630e0ef39 /scripts/docgen.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-ae7698f4fe9a054c2427a8f5612422c9d6426b74.tar nvim-lspconfig-ae7698f4fe9a054c2427a8f5612422c9d6426b74.tar.gz nvim-lspconfig-ae7698f4fe9a054c2427a8f5612422c9d6426b74.tar.bz2 nvim-lspconfig-ae7698f4fe9a054c2427a8f5612422c9d6426b74.tar.lz nvim-lspconfig-ae7698f4fe9a054c2427a8f5612422c9d6426b74.tar.xz nvim-lspconfig-ae7698f4fe9a054c2427a8f5612422c9d6426b74.tar.zst nvim-lspconfig-ae7698f4fe9a054c2427a8f5612422c9d6426b74.zip | |
feat: expose config definition as `config_def` #3335
Problem:
Users/plugins may want to use the config definition without actually
activating the config via setup().
Solution:
- Expose `config_def` field and document it.
- Also undeprecate some stuff that doesn't yet have a documented
alternative.
TODO: configs.lua sets `M.filetypes = config.filetypes` and other fields
in ad-hoc fashion "for :LspInfo" but it's not clear when those fields
are actually populated, and they don't source from `config_def`...
Diffstat (limited to 'scripts/docgen.lua')
| -rw-r--r-- | scripts/docgen.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/docgen.lua b/scripts/docgen.lua index 1a9328c4..e2749ba9 100644 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -103,7 +103,7 @@ local function make_lsp_sections() 0, '\n', sorted_map_table(configs, function(template_name, template_object) - local template_def = template_object.document_config + local template_def = template_object.config_def local docs = template_def.docs local params = { |
