fix(lazygit): use lazy.util.open on Neovim <= 0.10

This commit is contained in:
Iordanis Petkakis 2024-06-23 11:46:30 +03:00
parent b47c65f408
commit 8806db7660

View file

@ -176,6 +176,10 @@ function M.browse()
local function open(remote)
if remote then
LazyVim.info(("Opening [%s](%s)"):format(remote.name, remote.url))
if vim.fn.has("nvim-0.10") == 0 then
require("lazy.util").open(remote.url, { system = true })
return
end
vim.ui.open(remote.url)
end
end