feat(ui): added help for <CR> on a plugin

This commit is contained in:
Folke Lemaitre 2022-12-18 14:51:34 +01:00
parent b88b7d75eb
commit c87673c4b9
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ function M:help()
local View = require("lazy.view") local View = require("lazy.view")
self:append("Help", "LazyH2"):nl():nl() self:append("Help", "LazyH2"):nl():nl()
self:append("You can press "):append("<CR>", "LazySpecial"):append(" on a plugin to show its details."):nl():nl()
self:append("Keyboard Shortcuts", "LazyH2"):nl() self:append("Keyboard Shortcuts", "LazyH2"):nl()
for _, mode in ipairs(View.modes) do for _, mode in ipairs(View.modes) do
local title = mode.name:sub(1, 1):upper() .. mode.name:sub(2) local title = mode.name:sub(1, 1):upper() .. mode.name:sub(2)