diff options
Diffstat (limited to 'lua/lspconfig/server_configurations/flow.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/flow.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/flow.lua b/lua/lspconfig/server_configurations/flow.lua new file mode 100644 index 00000000..b6e44b86 --- /dev/null +++ b/lua/lspconfig/server_configurations/flow.lua @@ -0,0 +1,28 @@ +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 = { + 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")]], + }, + }, +} |
