aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/flow.lua
blob: 0b713f9c7127070f6ae82e0390d31ca096ce58b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'npx', '--no-install', 'flow', 'lsp' },
    filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx' },
    root_dir = util.root_pattern '.flowconfig',
  },
  docs = {
    description = [[
https://flow.org/
https://github.com/facebook/flow

See below for how to setup Flow itself.
https://flow.org/en/docs/install/

See below for lsp command options.

```sh
npx flow lsp --help
```
    ]],
  },
}