docs: fix hl_group docgen

This commit is contained in:
Folke Lemaitre 2024-11-20 09:08:44 +01:00
parent 7967abe557
commit e41dffcbaf
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -131,6 +131,7 @@ function M.colors(opts)
{ "---", "---", "---" },
}
Util.foreach(require(opts.modname).colors, function(group, link)
link = type(link) == "table" and vim.inspect(link) or link
lines[#lines + 1] = { "**" .. opts.name .. group .. "**", "***" .. link .. "***", comments[group] or "" }
end)
return { content = M.table(lines) }