mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:40:05 +08:00
Add lang#python layer
This commit is contained in:
parent
380530b862
commit
2c761323eb
@ -24,12 +24,6 @@ function! SpaceVim#layers#lang#plugins() abort
|
||||
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
|
||||
\ ['voxpupuli/vim-puppet', {'on_ft' : 'puppet'}],
|
||||
\ ]
|
||||
" 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
|
||||
|
||||
|
10
autoload/SpaceVim/layers/lang/python.vim
Normal file
10
autoload/SpaceVim/layers/lang/python.vim
Normal file
@ -0,0 +1,10 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user