fix(ui): close ui when opening a help file. Fixes #808

This commit is contained in:
Folke Lemaitre 2023-05-20 09:26:23 +02:00
parent 91564cb0a6
commit cc7a764aec
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 4 additions and 1 deletions

View File

@ -172,7 +172,10 @@ function M:setup_patterns()
Util.open(plugin.dir .. "/README.md") Util.open(plugin.dir .. "/README.md")
end end
end, end,
["|(%S-)|"] = vim.cmd.help, -- vim help links ["|(%S-)|"] = function(h)
vim.cmd.help(h)
self:close()
end,
["(https?://%S+)"] = function(url) ["(https?://%S+)"] = function(url)
Util.open(url) Util.open(url)
end, end,