mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-22 12:14:21 +01:00
fix a:url
This commit is contained in:
@@ -162,15 +162,15 @@ endfunction
|
|||||||
|
|
||||||
function! lsp_settings#utils#open_url(url) abort
|
function! lsp_settings#utils#open_url(url) abort
|
||||||
if exists('g:loaded_openbrowser') && g:loaded_openbrowser
|
if exists('g:loaded_openbrowser') && g:loaded_openbrowser
|
||||||
call openbrowser#open(l:conf.url)
|
call openbrowser#open(a:url)
|
||||||
elseif has('win32') || has('win64')
|
elseif has('win32') || has('win64')
|
||||||
silent! exec printf('!start rundll32 url.dll,FileProtocolHandler %s', l:conf.url)
|
silent! exec printf('!start rundll32 url.dll,FileProtocolHandler %s', a:url)
|
||||||
elseif has('mac') || has('macunix') || has('gui_macvim') || system('uname') =~? '^darwin'
|
elseif has('mac') || has('macunix') || has('gui_macvim') || system('uname') =~? '^darwin'
|
||||||
call system(printf('open "%s"', l:conf.url))
|
call system(printf('open "%s"', a:url))
|
||||||
elseif executable('xdg-open')
|
elseif executable('xdg-open')
|
||||||
call system(printf('xdg-open "%s"', l:conf.url))
|
call system(printf('xdg-open "%s"', a:url))
|
||||||
elseif executable('firefox')
|
elseif executable('firefox')
|
||||||
call system(printf('firefox "%s"', l:conf.url))
|
call system(printf('firefox "%s"', a:url))
|
||||||
else
|
else
|
||||||
return v:false
|
return v:false
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user