summaryrefslogtreecommitdiff
path: root/dot_config/nvim_new/lsp/flow.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim_new/lsp/flow.lua')
-rw-r--r--dot_config/nvim_new/lsp/flow.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/dot_config/nvim_new/lsp/flow.lua b/dot_config/nvim_new/lsp/flow.lua
new file mode 100644
index 0000000..bf91c59
--- /dev/null
+++ b/dot_config/nvim_new/lsp/flow.lua
@@ -0,0 +1,18 @@
+---@brief
+---
+--- 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
+--- ```
+return {
+ cmd = { 'npx', '--no-install', 'flow', 'lsp' },
+ filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx' },
+ root_markers = { '.flowconfig' },
+}