docs: added configuration

This commit is contained in:
Folke Lemaitre committed 2023-01-10 11:14:27 +01:00
1 parent dcf520f3a7
commit 4d7455ad2c
2 files changed
+92 -5

No files matched your search

+3 -1
View File
@@ -44,7 +44,8 @@ function M.keymaps()
group = "Plugins"
Util.foreach(require("lazy.core.config").plugins, function(name, plugin)
local core = require("lazy.core.plugin").Spec.new({ import = "lazyvim.plugins" })
Util.foreach(core.plugins, function(name, plugin)
for _, key in ipairs(plugin.keys or {}) do
if type(key) == "table" and key.desc then
local desc = key.desc or ""
@@ -95,6 +96,7 @@ function M.update()
---@type table<string, ReadmeBlock>
local data = {
keymaps = M.keymaps(),
config = Docs.extract("lua/lazyvim/config/init.lua", "\nlocal defaults = ({.-\n})"),
}
local core = require("lazy.core.plugin").Spec.new({ import = "lazyvim.plugins" })