mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-31 08:04:39 +02:00
build: create separate keyamp groups per plugin
This commit is contained in:
parent
7be8efaa84
commit
3a1ef4150d
1 changed files with 1 additions and 1 deletions
|
@ -47,10 +47,10 @@ function M.keymaps()
|
||||||
|
|
||||||
local core = require("lazy.core.plugin").Spec.new({ import = "lazyvim.plugins" })
|
local core = require("lazy.core.plugin").Spec.new({ import = "lazyvim.plugins" })
|
||||||
Util.foreach(core.plugins, function(name, plugin)
|
Util.foreach(core.plugins, function(name, plugin)
|
||||||
|
group = ("[%s](%s)"):format(plugin.name, plugin.url)
|
||||||
for _, key in ipairs(plugin.keys or {}) do
|
for _, key in ipairs(plugin.keys or {}) do
|
||||||
if type(key) == "table" and key.desc then
|
if type(key) == "table" and key.desc then
|
||||||
local desc = key.desc or ""
|
local desc = key.desc or ""
|
||||||
desc = ("[%s](%s)"):format(plugin.name, plugin.url) .. " " .. desc
|
|
||||||
map(key.mode or "n", key[1], key[2], { desc = desc })
|
map(key.mode or "n", key[1], key[2], { desc = desc })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue