fix(ocaml): get_language_id

This commit is contained in:
Iordanis Petkakis 2024-08-19 19:01:35 +03:00
parent 12818a6cb4
commit 865b68fc0b

View file

@ -18,9 +18,14 @@ return {
opts = {
servers = {
ocamllsp = {
get_language_id = function(_, ftype)
return language_id_of[ftype]
end,
filetypes = {
"ocaml",
"ocaml.menhir",
"ocaml.interface",
"ocaml.ocamllex",
"reason",
"dune",
},
root_dir = function(fname)
return require("lspconfig.util").root_pattern(
"*.opam",