Ⅰ. 插件描述
The dark powered snippet plugin for neovimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'shougo/deoppet-nvim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'shougo/deoppet-nvim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'shougo/deoppet-nvim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/shougo/deoppet.nvim
Ⅳ. 文档说明
deoppet.nvim
Warning: This is the vaporware! It is not implemented yet.
Deoppet is the abbreviation of "dark powered neo-snippet". It
provides the snippet expansion.
Installation
Note: deoppet requires Neovim(0.5.0+) with Python3.
See requirements if you aren't sure whether you have this.
- Extract the files and put them in your Neovim directory
(usually$XDG_CONFIG_HOME/nvim/). - Execute the
:UpdateRemotePluginsand restart Neovim.
Note: deoppet does not work in Vim8 environment.
For vim-plug
Plug 'Shougo/deoppet.nvim', { 'do': ':UpdateRemotePlugins' }For dein.vim
call dein#add('Shougo/deoppet.nvim')Requirements
deoppet requires Neovim with if_python3.
If :echo has("python3") returns 1, then you're done; otherwise, see below.
You can enable Python3 interface with pip:
pip3 install --user pynvim
If you want to read the pynvim/python3 interface install documentation,
you should read :help provider-python and the Wiki.
Note: Python3 must be enabled before updating remote plugins
If Deoppet was installed prior to Python support being added to Neovim,:UpdateRemotePlugins should be executed manually.
Screenshots
Configuration Examples
call deoppet#initialize()
call deoppet#custom#option('snippets_dirs',
\ globpath(&runtimepath, 'neosnippets', 1, 1))