Ⅰ. 插件描述
Neovim and vim Flow autocompletion for deoplete + neosnippetⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'wokalski/autocomplete-flow'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'wokalski/autocomplete-flow'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'wokalski/autocomplete-flow'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/wokalski/autocomplete-flow
Ⅳ. 文档说明
## Autocomplete-flow
Flow autocompletion for deoplete
- ✅ flowbin support
- ✅ always async
- ✅ supports function argument completion with neosnippet
Installation
This plugin requires neovim (vim8 should work, too) with python.
Minimal working .vimrc/init.vim:
call plug#begin()
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'wokalski/autocomplete-flow'
" For func argument completion
Plug 'Shougo/neosnippet'
Plug 'Shougo/neosnippet-snippets'
call plug#end()
" deoplete
let g:deoplete#enable_at_startup = 1
" neosnippet
let g:neosnippet#enable_completed_snippet = 1
Configuration
If neosnippet integration is not enabled, this plugin will insert an opening
paren when completing a function name.
Add this line to your configuration to disable that behavior:
let g:autocomplete_flow#insert_paren_after_function = 0Credits
The initial version is based on autocomplete-swift. Thanks to @SeeThruHead for the vim script to find flow-bin.