neovim/runtime/autoload/provider/perl.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
454 B
VimL
Raw Normal View History

2024-01-22 14:07:14 -07:00
if exists('g:loaded_perl_provider')
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)
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)
endfunction
2024-01-22 14:07:14 -07:00
let s:prog = v:lua.require'vim.provider.perl'.detect()
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()