summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/flow.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/flow.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/flow.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/flow.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/flow.lua
new file mode 100644
index 0000000..3ac59aa
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/flow.lua
@@ -0,0 +1,27 @@
+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
+```
+ ]],
+ default_config = {
+ root_dir = [[root_pattern(".flowconfig")]],
+ },
+ },
+}