Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amiralies/coc-flow
Flow language server extension for coc.nvim
https://github.com/amiralies/coc-flow
coc flow javascript lsp vim
Last synced: about 16 hours ago
JSON representation
Flow language server extension for coc.nvim
- Host: GitHub
- URL: https://github.com/amiralies/coc-flow
- Owner: amiralies
- License: mit
- Created: 2019-08-21T23:08:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T19:47:02.000Z (almost 2 years ago)
- Last Synced: 2024-09-19T14:13:25.219Z (about 2 months ago)
- Topics: coc, flow, javascript, lsp, vim
- Language: JavaScript
- Size: 877 KB
- Stars: 29
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coc-flow
Flow language server extension for [`coc.nvim`](https://github.com/neoclide/coc.nvim).
## Install
1. Inside (neo)vim run this command:
```
:CocInstall coc-flow
```Note: for coc installation instructions visit [`coc.nvim`](https://github.com/neoclide/coc.nvim/wiki/Install-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](https://flow.org/en/docs/install) it), as fallback it uses `flow.pathToFlow`, you can toggle this behavior using `flow.useNPMPackagedFlow` option.
* If you're using [coc-tsserver](https://github.com/neoclide/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