mirror of
https://github.com/neovim/nvim-lspconfig
synced 2024-09-16 14:24:07 +02:00
fix(scripts): use compatible tbl_flatten in docgen (#3171)
This commit is contained in:
parent
eadcee1573
commit
772b01a1de
1 changed files with 6 additions and 9 deletions
|
@ -39,15 +39,12 @@ local function indent(n, s)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function make_parts(fns)
|
local function make_parts(fns)
|
||||||
return vim
|
return util.tbl_flatten(map_list(fns, function(v)
|
||||||
.iter(fns)
|
if type(v) == 'function' then
|
||||||
:map(function(v)
|
v = v()
|
||||||
if type(v) == 'function' then
|
end
|
||||||
v = v()
|
return { v }
|
||||||
end
|
end))
|
||||||
return { v }
|
|
||||||
end)
|
|
||||||
:totable()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function make_section(indentlvl, sep, parts)
|
local function make_section(indentlvl, sep, parts)
|
||||||
|
|
Loading…
Reference in a new issue