neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

python3.vim (457B)


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