diff --git a/lua/lazy/view/init.lua b/lua/lazy/view/init.lua index b661d5a..ea35347 100644 --- a/lua/lazy/view/init.lua +++ b/lua/lazy/view/init.lua @@ -172,7 +172,10 @@ function M:setup_patterns() Util.open(plugin.dir .. "/README.md") end end, - ["|(%S-)|"] = vim.cmd.help, -- vim help links + ["|(%S-)|"] = function(h) + vim.cmd.help(h) + self:close() + end, ["(https?://%S+)"] = function(url) Util.open(url) end,