We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d29ffe commit 56a34a8Copy full SHA for 56a34a8
lua/lazy/help.lua
@@ -8,12 +8,11 @@ function M.index(plugin)
8
return {}
9
end
10
11
- ---@param file string
12
- local tbl = vim.tbl_map(function(file)
13
- return vim.fn.expand(plugin.dir .. "/" .. file, false, true)
14
- end, Config.options.readme.files)
+ local files = {}
15
16
- local files = vim.iter and vim.iter(tbl):flatten():totable() or vim.tbl_flatten(tbl)
+ for _, file in ipairs(Config.options.readme.files) do
+ vim.list_extend(files, vim.fn.expand(plugin.dir .. "/" .. file, false, true))
+ end
17
18
---@type table<string,{file:string, tag:string, line:string}>
19
local tags = {}
0 commit comments