From 8806db7660ebe5764aeb676f42974f62e89d764f Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com> Date: Sun, 23 Jun 2024 11:46:30 +0300 Subject: [PATCH] fix(lazygit): use `lazy.util.open` on Neovim <= 0.10 --- lua/lazyvim/util/lazygit.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lazyvim/util/lazygit.lua b/lua/lazyvim/util/lazygit.lua index c9ac1bb8..d69941df 100644 --- a/lua/lazyvim/util/lazygit.lua +++ b/lua/lazyvim/util/lazygit.lua @@ -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