blob: 518bd3516ae270b1365a8376861d48fbb70c1765 (
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
31
32
|
local skeleton = require 'nvim_lsp/skeleton'
local util = require 'nvim_lsp/util'
local lsp = vim.lsp
skeleton.flow = {
default_config = {
cmd = {"npm", "run", "flow","lsp"};
filetypes = {"javascript", "javascriptreact", "javascript.jsx"};
root_dir = util.root_pattern(".flowconfig");
log_level = lsp.protocol.MessageType.Warning;
settings = {};
};
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
npm run flow lsp -- --help
```
]];
default_config = {
root_dir = [[root_pattern(".flowconfig")]];
};
};
};
-- vim:et ts=2 sw=2
|