From 3a216d008def355813ede7deb5392276b7e3c10c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 9 Jan 2023 08:05:46 +0100 Subject: [PATCH] fix(docs): auto-gen of readme stuff --- lua/lazy/docs.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazy/docs.lua b/lua/lazy/docs.lua index d274a57..118fcde 100644 --- a/lua/lazy/docs.lua +++ b/lua/lazy/docs.lua @@ -36,7 +36,7 @@ function M.save(contents) if not readme:find(pattern) then error("tag " .. tag .. " not found") end - if tag == "commands" or tag == "colors" or tag == "plugins" then + if tag == "commands" or tag == "colors" or tag == "plugins" or tag == "keymaps" then readme = readme:gsub(pattern, "%1\n\n" .. content .. "\n\n%2") else readme = readme:gsub(pattern, "%1\n\n```lua\n" .. content .. "\n```\n\n%2") @@ -137,7 +137,7 @@ end function M.plugins() local Config = require("lazy.core.config") - local lines = { "## Plugins", "" } + local lines = {} Util.foreach(Config.plugins, function(name, plugin) if plugin.url then lines[#lines + 1] = "- [" .. name .. "](" .. plugin.url:gsub("%.git$", "") .. ")"