Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docgen): root_dir doc shows paths from CI env #3630

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions doc/configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,7 @@ Default config:
```lua
{ "r" }
```
- `root_dir` :
```lua
"/home/runner/work/nvim-lspconfig/nvim-lspconfig"
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/air.lua:2](../lua/lspconfig/configs/air.lua#L2)
- `single_file_support` : `true`


Expand Down Expand Up @@ -11296,10 +11293,7 @@ Default config:
```lua
{ "html", "ruby", "eruby", "blade", "php" }
```
- `root_dir` :
```lua
"/home/runner/work/nvim-lspconfig/nvim-lspconfig"
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/turbo_ls.lua:2](../lua/lspconfig/configs/turbo_ls.lua#L2)


## turtle_ls
Expand Down
10 changes: 2 additions & 8 deletions doc/configs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,7 @@ Default config:
```lua
{ "r" }
```
- `root_dir` :
```lua
"/home/runner/work/nvim-lspconfig/nvim-lspconfig"
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/air.lua:2](../lua/lspconfig/configs/air.lua#L2)
- `single_file_support` : `true`


Expand Down Expand Up @@ -11296,10 +11293,7 @@ Default config:
```lua
{ "html", "ruby", "eruby", "blade", "php" }
```
- `root_dir` :
```lua
"/home/runner/work/nvim-lspconfig/nvim-lspconfig"
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/turbo_ls.lua:2](../lua/lspconfig/configs/turbo_ls.lua#L2)


## turtle_ls
Expand Down
2 changes: 1 addition & 1 deletion scripts/docgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading