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 = { opts = {
servers = { servers = {
ocamllsp = { ocamllsp = {
get_language_id = function(_, ftype) filetypes = {
return language_id_of[ftype] "ocaml",
end, "ocaml.menhir",
"ocaml.interface",
"ocaml.ocamllex",
"reason",
"dune",
},
root_dir = function(fname) root_dir = function(fname)
return require("lspconfig.util").root_pattern( return require("lspconfig.util").root_pattern(
"*.opam", "*.opam",