From 52d7a42914fae921e8abea9dc6483f07af632bc9 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Thu, 18 Jul 2024 15:42:01 -0700 Subject: [PATCH] feat: support vim.ui.open for GBrowse on Neovim --- autoload/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 9bab58c378..465fbf0fc3 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7433,6 +7433,8 @@ function! s:BrowserOpen(url, mods, echo_copy) abort return 'echo '.string(url).'|' . mods . 'Browse '.url elseif exists(':OpenBrowser') == 2 return 'echo '.string(url).'|' . mods . 'OpenBrowser '.url + elseif has('nvim-0.10') + return 'echo '.string(url).'|' . mods . 'lua vim.ui.open('.string(url).')' else if !exists('g:loaded_netrw') runtime! autoload/netrw.vim