deoplete-flow


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2015-12-20
使用用户:  23
Github星:  33
插件作者:  Steven Sojka

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'steelsojka/deoplete-flow'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'steelsojka/deoplete-flow'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'steelsojka/deoplete-flow'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/steelsojka/deoplete-flow

Ⅳ. 文档说明

# deoplete-flow

A plugin for deoplete to get flow
autocompletion functionality.

Installation

Currently only tested with NeoVim and Python3 client.
Check out the deoplete documentation to get the basic setup.

Install this plugin with your favourite plugin manager.

Also make sure to install your flow-bin in your project directory:

npm install flow-bin

Configuration

# Binary path to your flow, defaults to your $PATH flow 
let g:deoplete#sources#flow#flow_bin = 'flow' 

Local vs. global flow-bin:

Most of the time you will probably want your flow-bin installed in your
node_modules directory of your current project. This example configuration
will preferably take the local version before the global one:

function! StrTrim(txt)
  return substitute(a:txt, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '')
endfunction

let g:flow_path = StrTrim(system('PATH=$(npm bin):$PATH && which flow'))

if g:flow_path != 'flow not found'
  let g:deoplete#sources#flow#flow_bin = g:flow_path
endif

添加新评论