aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/flow.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim_lsp/flow.lua')
-rw-r--r--lua/nvim_lsp/flow.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/nvim_lsp/flow.lua b/lua/nvim_lsp/flow.lua
new file mode 100644
index 00000000..518bd351
--- /dev/null
+++ b/lua/nvim_lsp/flow.lua
@@ -0,0 +1,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