mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(keys): include custom keys in help menu (#1105)
This commit is contained in:
parent
906ff8e569
commit
43c284a578
5 changed files with 71 additions and 47 deletions
|
@ -121,9 +121,10 @@ function M.create()
|
|||
end
|
||||
end)
|
||||
|
||||
for key, handler in pairs(Config.options.ui.custom_keys) do
|
||||
if handler then
|
||||
self:on_key(key, function()
|
||||
for lhs, rhs in pairs(Config.options.ui.custom_keys) do
|
||||
if rhs then
|
||||
local handler = type(rhs) == "table" and rhs[1] or rhs
|
||||
self:on_key(lhs, function()
|
||||
local plugin = self.render:get_plugin()
|
||||
if plugin then
|
||||
handler(plugin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue