mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-23 12:16:24 +02:00
docs: added configuration
This commit is contained in:
parent
dcf520f3a7
commit
4d7455ad2c
2 changed files with 92 additions and 5 deletions
|
@ -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" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue