python3.vim 457 B

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