perl.vim 427 B

12345678910111213141516
  1. if exists('g:loaded_perl_provider')
  2. finish
  3. endif
  4. function! provider#perl#Call(method, args) abort
  5. return v:lua.vim.provider.perl.call(a:method, a:args)
  6. endfunction
  7. function! provider#perl#Require(host) abort
  8. return v:lua.vim.provider.perl.require(a:host, s:prog)
  9. endfunction
  10. let s:prog = v:lua.vim.provider.perl.detect()
  11. let g:loaded_perl_provider = empty(s:prog) ? 1 : 2
  12. call v:lua.require'vim.provider.perl'.start()