aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/docgen.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-10-02 02:50:41 -0700
committerGitHub <noreply@github.com>2024-10-02 02:50:41 -0700
commitae7698f4fe9a054c2427a8f5612422c9d6426b74 (patch)
tree26d5c6495f78f0800f2c58f4011dbe7630e0ef39 /scripts/docgen.lua
parentdocs: update configs.md (diff)
downloadnvim-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.lua2
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 = {