mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
26 lines
525 B
VimL
26 lines
525 B
VimL
|
|
func! yarp#py3(module)
|
|
if type(a:module) == v:t_string
|
|
let rp = {}
|
|
let rp.module = a:module
|
|
else
|
|
let rp = a:module
|
|
endif
|
|
let rp.init = function('yarp#pyx#init')
|
|
let rp.type = 'py3'
|
|
return yarp#core#new(rp)
|
|
endfunc
|
|
|
|
func! yarp#py(module)
|
|
if type(a:module) == v:t_string
|
|
let rp = {}
|
|
let rp.module = a:module
|
|
else
|
|
let rp = a:module
|
|
endif
|
|
let rp.init = function('yarp#pyx#init')
|
|
let rp.type = 'py'
|
|
return yarp#core#new(rp)
|
|
endfunc
|
|
|