Flow language server extension for coc.nvim.
- Inside (neo)vim run this command:
:CocInstall coc-flow
Note: for coc installation instructions visit coc.nvim repo
- Make sure you have
.flowconfiginside 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 usingflow.useNPMPackagedFlowoption. - If you're using coc-tsserver, set
javascript.validate.enableoption tofalse, or completely disable tsserver extension by settingtsserver.enabletofalse.
- Code completion
- Go to definition
- Diagnostics
- Hover for type info
flow.enable(default:true) Enable flow extensionflow.pathToFlow(default:flow) Absolute path to flow binaryflow.useNPMPackagedFlow(default:true) Use flow binary which exists in node_modules (recommended)flow.stopFlowOnExit(default:true) Stop flow server on exitflow.lazyMode(default:'') Which lazy mode to use, empty string will use lazy mode set in .flowconfig and any other value override that
MIT