diff options
Diffstat (limited to 'lua/lspconfig/ocamllsp.lua')
| -rw-r--r-- | lua/lspconfig/ocamllsp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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")]]; }; }; } |
