2024-01-22 14:07:14 -07:00
|
|
|
if exists('g:loaded_perl_provider')
|
2019-11-04 10:33:07 -07:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2024-01-22 14:07:14 -07:00
|
|
|
function! provider#perl#Call(method, args) abort
|
|
|
|
return v:lua.require'vim.provider.perl'.call(a:method, a:args)
|
2019-11-04 10:33:07 -07:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! provider#perl#Require(host) abort
|
2024-01-22 14:07:14 -07:00
|
|
|
return v:lua.require'vim.provider.perl'.require(a:host, s:prog)
|
2019-11-04 10:33:07 -07:00
|
|
|
endfunction
|
|
|
|
|
2024-01-22 14:07:14 -07:00
|
|
|
let s:prog = v:lua.require'vim.provider.perl'.detect()
|
2019-11-04 10:33:07 -07:00
|
|
|
let g:loaded_perl_provider = empty(s:prog) ? 1 : 2
|
2024-01-22 14:07:14 -07:00
|
|
|
call v:lua.require'vim.provider.perl'.start()
|