Skip to content

Commit

Permalink
fix(ui): close ui when opening a help file. Fixes #808
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 20, 2023
1 parent 91564cb commit cc7a764
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/lazy/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cc7a764

Please sign in to comment.