aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/flow.lua
blob: 2a4bd8800692cf0d10e62d6cd16c55308d5c7748 (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
25
26
27
28
29
30
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'

configs.flow = {
  default_config = {
    cmd = { 'npx', '--no-install', 'flow', 'lsp' },
    filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx' },
    root_dir = util.root_pattern '.flowconfig',
  },
  docs = {
    package_json = 'https://raw.githubusercontent.com/flowtype/flow-for-vscode/master/package.json',
    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
```
    ]],
    default_config = {
      root_dir = [[root_pattern(".flowconfig")]],
    },
  },
}
-- vim:et ts=2 sw=2