mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +08:00
Update lang#python layer (#779)
* plugin: json-vim: update to newer, forked version Updated the lang layer to use elzr/vim-json's fork or the old plugin (leshill/vim-json). Now the actual used plugin is consistent with the documentation, which pointed to elzr/vim-json before * Update lang#python layer * Remove plugin that does not exist * Use fork instead * Remove g:delimitMate_matchpairs setting. Let `)`(delimitMate mapping) can work. Remove '<:>' mapping, let the `less then` operator can work. Fixes #772 * Call complete_parameter#pre_complete only pumvisible. If pumvisible is false, call "\<Plug>delimitMate(" * Fix mapping to ( * Update statusline for ctrlp buffer * remove stray chars from documentation * Update version * Add mapping g<c-]> for jump to tag under cursor close #785 * fix typo * Move context from readme * Update readme * Update intr * Update readme * Bug: can not override layer options. Fix #793 * Add help desc * Update fild founder cmd * Update autocomplete layer * Add gq for format Nmove text * Update autocomplete layer options * Update travis config * Fix ag command in windows * Fix #803 * Update chinese doc * Update doc * Add fonts doc * Update doc * copy doc to zh_cn_doc * Fix command documentation * Add weixin & zhifubao info * Update img * Update features * Add Julia Support * Update markdown layer setting * Update markdown layer doc * Add vim-repeat to edit layer This is a really nice plugin which adds a user pluggable "." command. It integrates seamlessly with several plugins, notably tpope/vim-surround and makes the "." command capable of repeating on the entire surround command, rather than just a part of the command. ysaw" becomes easily repeatable! * Update doc * Update config doc * Update statusline doc * Fix git head * Update doc for statusline * Update doc for tabline * Update doc * Update remark config * Update markdown layer * Update config for remark * Add layer for Pony programming language * Fix remark setting * Add airline/tabline theme for nord * Update doc for getting help * Fix slash * Upate toc * Remove title * Update markdown plugin * Fix doc generation * Update jumping doc * Fix shell layer * Add key binding desc for SPC ' * Add key binding for clear saved buffers * Merge dev branch * Add SPC a q for QQ in vim * Note for chinese doc * Update doc for file manager * Set img size * Update img size * Update img size * Update lang#python layer
This commit is contained in:
parent
e0b345130a
commit
a378c40047
@ -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
|
||||
|
20
docs/layers/lang/python.md
Normal file
20
docs/layers/lang/python.md
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
title: "SpaceVim lang#python layer"
|
||||
---
|
||||
|
||||
# [SpaceVim Layers:](https://spacevim.org/layers) lang#python
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
* [Description](#description)
|
||||
* [Features](#features)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## 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)
|
Loading…
Reference in New Issue
Block a user