1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-23 22:11:34 +08:00
SpaceVim/autoload/SpaceVim/layers/lang/python.vim

20 lines
547 B
VimL
Raw Normal View History

2017-02-02 01:57:06 +08:00
""
" @section lang#python, layer-lang-python
" @parentsection layers
" To make this layer works well, you should install jedi.
" @subsection mappings
" >
" mode key function
" <
2017-02-01 16:00:22 +08:00
function! SpaceVim#layers#lang#python#plugins() abort
let plugins = []
" python
if has('nvim')
call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}])
else
call add(plugins, ['davidhalter/jedi-vim', { 'on_ft' : 'python'}])
endif
return plugins
endfunction