From 3352fc62652cc7609b23002982bac3f830002679 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 24 Dec 2022 11:41:01 +0100 Subject: [PATCH] docs: added diff keybindings to help page --- lua/lazy/view/render.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index ba242b1..934a8c2 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -150,8 +150,14 @@ function M:help() self:append("Most properties can be hovered with ") self:append("", "LazySpecial") self:append(" to open links, help files, readmes and git commits."):nl() - self:append("When hovering on a plugin anywhere else, a diff will be opened if there are updates"):nl() - self:append("or the plugin was just updated. Otherwise the plugin webpage will open."):nl():nl() + self + :append("When hovering with ") + :append("", "LazySpecial") + :append(" on a plugin anywhere else, a diff will be opened if there are updates") + :nl() + self:append("or the plugin was just updated. Otherwise the plugin webpage will open."):nl() + self:append("Use "):append("", "LazySpecial"):append(" on a commit or plugin to open the diff view"):nl() + self:nl() self:append("Keyboard Shortcuts", "LazyH2"):nl() for _, mode in ipairs(ViewConfig.get_commands()) do