diff --git a/lua/lazy/help.lua b/lua/lazy/help.lua index a5fd741..46b47fd 100644 --- a/lua/lazy/help.lua +++ b/lua/lazy/help.lua @@ -8,12 +8,11 @@ function M.index(plugin) return {} end - ---@param file string - local tbl = vim.tbl_map(function(file) - return vim.fn.expand(plugin.dir .. "/" .. file, false, true) - end, Config.options.readme.files) + local files = {} - 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 ---@type table local tags = {}