Ⅰ. 插件描述
deoplete.nvim source for PythonⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'deoplete-plugins/deoplete-jedi-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'deoplete-plugins/deoplete-jedi-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'deoplete-plugins/deoplete-jedi-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/deoplete-plugins/deoplete-jedi
Ⅳ. 文档说明
# deoplete-jedi
deoplete.nvim source for jedi.
Status | |
---|---|
Travis CI | |
Gitter |
Required
Neovim and neovim/python-client
deoplete.nvim
jedi
Install
NeoBundle 'deoplete-plugins/deoplete-jedi'
# or
Plug 'deoplete-plugins/deoplete-jedi'
Note: If you don't want to use a plugin manager, you will need to clone
this repo recursively:
git clone --recursive https://github.com/deoplete-plugins/deoplete-jedi
When updating the plugin, you will want to be sure that the Jedi submodule is
kept up to date with:
git submodule update --init
Options
g:deoplete#sources#jedi#statement_length
: Sets the maximum length of
completion description text. If this is exceeded, a simple description is
used instead.
Default: 50
g:deoplete#sources#jedi#enable_typeinfo
: Enables type information of- If you disable it, you will get the faster results.
Default:1
- If you disable it, you will get the faster results.
g:deoplete#sources#jedi#show_docstring
: Shows docstring in preview window.
Default:0
g:deoplete#sources#jedi#python_path
: Set the Python interpreter path to use
for the completion server. It defaults to "python", i.e. the first available
python
in $PATH
.
Note: This is different from Neovim's Python (:python
) in general.
g:deoplete#sources#jedi#extra_path
: A list of extra paths to add to
sys.path
when performing completions.g:deoplete#sources#jedi#ignore_errors
: Ignore jedi errors for completions.
Default:0
g:deoplete#sources#jedi#ignore_private_members
: Ignore private members from
completions.
Default: 0
Virtual Environments
If you are using virtualenv, it is recommended that you create environments
specifically for Neovim. This way, you will not need to install the neovim
package in each virtualenv. Once you have created them, add the following to
your vimrc file:
let g:python_host_prog = '/full/path/to/neovim2/bin/python'
let g:python3_host_prog = '/full/path/to/neovim3/bin/python'
Deoplete only requires Python 3. See :h nvim-python-quickstart
for more
information.