fixed get_language_id

This commit is contained in:
Ben Puryear 2024-07-18 17:52:32 -07:00 committed by GitHub
parent d1fffee3e3
commit a3c2fbe1a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ return {
servers = { servers = {
ocamllsp = { ocamllsp = {
get_language_id = function(_, ftype) get_language_id = function(_, ftype)
return ftype return language_id_of[ftype]
end, end,
root_dir = function(fname) root_dir = function(fname)
return require("lspconfig.util").root_pattern( return require("lspconfig.util").root_pattern(
@ -32,7 +32,6 @@ return {
"*.ml" "*.ml"
)(fname) )(fname)
end, end,
on_attach = on_attach,
}, },
}, },
}, },