aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig')
-rw-r--r--lua/lspconfig/ocamlls.lua4
-rw-r--r--lua/lspconfig/ocamllsp.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/lua/lspconfig/ocamlls.lua b/lua/lspconfig/ocamlls.lua
index d01f7622..053dfe3b 100644
--- a/lua/lspconfig/ocamlls.lua
+++ b/lua/lspconfig/ocamlls.lua
@@ -8,7 +8,7 @@ configs[server_name] = {
default_config = {
cmd = { bin_name, "--stdio" };
filetypes = { "ocaml", "reason" };
- root_dir = util.root_pattern(".merlin", "package.json");
+ root_dir = util.root_pattern("*.opam", "esy.json", "package.json");
};
docs = {
description = [[
@@ -20,7 +20,7 @@ npm install -g ocaml-langauge-server
```
]];
default_config = {
- root_dir = [[root_pattern(".merlin", "package.json")]];
+ root_dir = [[root_pattern("*.opam", "esy.json", "package.json")]];
};
};
};
diff --git a/lua/lspconfig/ocamllsp.lua b/lua/lspconfig/ocamllsp.lua
index 9efc59b4..155ec1c8 100644
--- a/lua/lspconfig/ocamllsp.lua
+++ b/lua/lspconfig/ocamllsp.lua
@@ -5,7 +5,7 @@ configs.ocamllsp = {
default_config = {
cmd = {"ocamllsp",};
filetypes = {'ocaml', 'reason'};
- root_dir = util.root_pattern(".merlin", "package.json", ".git");
+ root_dir = util.root_pattern("*.opam", "esy.json", "package.json", ".git");
};
docs = {
description = [[
@@ -20,7 +20,7 @@ opam install ocaml-lsp-server
```
]];
default_config = {
- root_dir = [[root_pattern(".merlin", "package.json")]];
+ root_dir = [[root_pattern("*.opam", "esy.json", "package.json", ".git")]];
};
};
}