coc-flow


Ⅰ. 插件描述

Flow language server extension for coc.nvim

Ⅱ. 基本信息

创建日期:  2019-08-20
使用用户:  2
Github星:  12
插件作者:  Amirali Esmaeili

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# coc-flow

Flow language server extension for coc.nvim.

Install

  1. Inside (neo)vim run this command:
:CocInstall coc-flow

Note: for coc installation instructions visit coc.nvim repo

Setup

  • Make sure you have .flowconfig inside your project root.
  • By default coc-flow looks for flow binary inside your node_modules (as flow recommends it), as fallback it uses flow.pathToFlow, you can toggle this behavior using flow.useNPMPackagedFlow option.
  • If you're using coc-tsserver, set javascript.validate.enable option to false, or completely disable tsserver extension by setting tsserver.enable to false.

Features

  • Code completion
  • Go to definition
  • Diagnostics
  • Hover for type info

Configuration

  • flow.enable (default: true) Enable flow extension
  • flow.pathToFlow (default: flow) Absolute path to flow binary
  • flow.useNPMPackagedFlow (default: true) Use flow binary which exists in node_modules (recommended)
  • flow.stopFlowOnExit (default: true) Stop flow server on exit
  • flow.lazyMode (default: '') Which lazy mode to use, empty string will use lazy mode set in .flowconfig and any other value override that

License

MIT

添加新评论