mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(lazygit): use lazy.util.open on Neovim <= 0.10
This commit is contained in:
parent
b47c65f408
commit
8806db7660
1 changed files with 4 additions and 0 deletions
|
|
@ -176,6 +176,10 @@ function M.browse()
|
||||||
local function open(remote)
|
local function open(remote)
|
||||||
if remote then
|
if remote then
|
||||||
LazyVim.info(("Opening [%s](%s)"):format(remote.name, remote.url))
|
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)
|
vim.ui.open(remote.url)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue