mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
16 lines
454 B
VimL
16 lines
454 B
VimL
if exists('g:loaded_perl_provider')
|
|
finish
|
|
endif
|
|
|
|
function! provider#perl#Call(method, args) abort
|
|
return v:lua.require'vim.provider.perl'.call(a:method, a:args)
|
|
endfunction
|
|
|
|
function! provider#perl#Require(host) abort
|
|
return v:lua.require'vim.provider.perl'.require(a:host, s:prog)
|
|
endfunction
|
|
|
|
let s:prog = v:lua.require'vim.provider.perl'.detect()
|
|
let g:loaded_perl_provider = empty(s:prog) ? 1 : 2
|
|
call v:lua.require'vim.provider.perl'.start()
|