From 9dc8ecb488413d879d5d259b1ec66cf0fa7ffbe9 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 27 Feb 2025 04:31:41 -0800 Subject: fix(docgen): root_dir doc shows paths from CI env #3630 Problem: When `root_dir` is not defined as a function, the generated docs show the paths resolved in the CI env: root_dir : lua "/home/runner/work/nvim-lspconfig/nvim-lspconfig" Solution: Always show the "gF" message for `root_dir`, even if it is not a function. Fix #3628 --- scripts/docgen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/docgen.lua b/scripts/docgen.lua index 04bbd6cc..0de2c047 100755 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -131,7 +131,7 @@ local function make_lsp_sections() map_sorted(template_def.default_config, function(k, v) if type(v) == 'boolean' then return ('- `%s` : `%s`'):format(k, v) - elseif type(v) ~= 'function' then + elseif type(v) ~= 'function' and k ~= 'root_dir' then return ('- `%s` :\n ```lua\n%s\n ```'):format(k, indent(2, inspect(v))) end -- cgit v1.2.3-70-g09d2