diff --git a/autoload/SpaceVim/layers/lang/python.vim b/autoload/SpaceVim/layers/lang/python.vim index 574a06875..0709a578c 100644 --- a/autoload/SpaceVim/layers/lang/python.vim +++ b/autoload/SpaceVim/layers/lang/python.vim @@ -11,20 +11,22 @@ function! SpaceVim#layers#lang#python#plugins() abort let plugins = [] " python if has('nvim') - call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}]) + call add(plugins, ['zchee/deoplete-jedi', { 'on_ft' : 'python'}]) else - call add(plugins, ['davidhalter/jedi-vim', { 'on_ft' : 'python', 'if' : has('python') || has('python3')}]) + call add(plugins, ['davidhalter/jedi-vim', { 'on_ft' : 'python', + \ 'if' : has('python') || has('python3')}]) endif - call add(plugins, ['Vimjas/vim-python-pep8-indent', { 'on_ft' : 'python'}]) + call add(plugins, ['Vimjas/vim-python-pep8-indent', + \ { 'on_ft' : 'python'}]) return plugins endfunction -function! SpaceVim#layers#lang#python#config() +function! SpaceVim#layers#lang#python#config() abort -call SpaceVim#layers#edit#add_ft_head_tamplate('python', - \ ['#!/usr/bin/env python', - \ '# -*- coding: utf-8 -*-', - \ ''] - \ ) + call SpaceVim#layers#edit#add_ft_head_tamplate('python', + \ ['#!/usr/bin/env python', + \ '# -*- coding: utf-8 -*-', + \ ''] + \ ) endfunction diff --git a/docs/layers/lang/python.md b/docs/layers/lang/python.md new file mode 100644 index 000000000..8f209ad9a --- /dev/null +++ b/docs/layers/lang/python.md @@ -0,0 +1,20 @@ +--- +title: "SpaceVim lang#python layer" +--- + +# [SpaceVim Layers:](https://spacevim.org/layers) lang#python + + +* [Description](#description) +* [Features](#features) + + + +## Description + +This layer is for Python development. + +## Features + +- Aoto-completion using [deoplete-jedi](https://github.com/zchee/deoplete-jedi) or [jedi-vim](https://github.com/davidhalter/jedi-vim) +- Documentation Lookup using [jedi-vim](https://github.com/davidhalter/jedi-vim)