mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46: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
|
@ -209,6 +209,14 @@ function M:help()
|
|||
self:append(" " .. (mode.desc_plugin or mode.desc)):nl()
|
||||
end
|
||||
end
|
||||
for lhs, rhs in pairs(Config.options.ui.custom_keys) do
|
||||
if type(rhs) == "table" and rhs.desc then
|
||||
self:append("- ", "LazySpecial", { indent = 2 })
|
||||
self:append("Custom key ", "Title")
|
||||
self:append(lhs, "LazyProp")
|
||||
self:append(" " .. rhs.desc):nl()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function M:progressbar()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue