Skip to content

Commit

Permalink
fix(docs): auto-gen of readme stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 9, 2023
1 parent a32e307 commit 3a216d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazy/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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$", "") .. ")"
Expand Down

0 comments on commit 3a216d0

Please sign in to comment.