mirror of https://github.com/folke/lazy.nvim.git
fix(ui): close ui when opening a help file. Fixes #808
This commit is contained in:
parent
91564cb0a6
commit
cc7a764aec
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue