This extension adds Flow language support for the Zed text editor.
Provides code completion, type checking, formatting and more.
Install the extension by cloning the repository and selecting the directory in the "Install Dev Extension" dialog.
To use the flow language server for JS files, add the following to your settings.json:
{
"languages": {
"JavaScript": {
"language_servers": [
"flow",
"!vtsls",
"!typescript-language-server",
"..."
]
}
}
}This will disable the built-in language servers for JavaScript code and use flow instead, while still running other language servers (e.g. Biome, ESLint etc.)
Flow has to be installed separately. Preferable as a local NPM dependency (flow-bin).
If the binary is not found in ./node_modules/.bin/flow, the extension will use a globally installed flow binary (if available).