aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Ruiz Safont <unduthegun@gmail.com>2021-05-17 09:56:16 +0100
committerPau Ruiz Safont <unduthegun@gmail.com>2021-05-17 21:00:01 +0100
commitb9e79ca471e0479734209da2138d3a0664c8d93d (patch)
treecfba865c4cf3b17f0077c5a74b23b57834de8d37
parentocamllsp: prepare for filetype to language_id translation (diff)
downloadnvim-lspconfig-b9e79ca471e0479734209da2138d3a0664c8d93d.tar
nvim-lspconfig-b9e79ca471e0479734209da2138d3a0664c8d93d.tar.gz
nvim-lspconfig-b9e79ca471e0479734209da2138d3a0664c8d93d.tar.bz2
nvim-lspconfig-b9e79ca471e0479734209da2138d3a0664c8d93d.tar.lz
nvim-lspconfig-b9e79ca471e0479734209da2138d3a0664c8d93d.tar.xz
nvim-lspconfig-b9e79ca471e0479734209da2138d3a0664c8d93d.tar.zst
nvim-lspconfig-b9e79ca471e0479734209da2138d3a0664c8d93d.zip
ocamllsp: add more filetypes
These are ocamlinterface, ocamllex and menhir. This is in preparation when these filetypes will be introduced in order to keep lsp working on them. The change is backwards compatible. For more information about the rationale of this change please read https://github.com/ocaml/vim-ocaml/pull/61
-rw-r--r--lua/lspconfig/ocamllsp.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/lspconfig/ocamllsp.lua b/lua/lspconfig/ocamllsp.lua
index c588b39d..5ce8441d 100644
--- a/lua/lspconfig/ocamllsp.lua
+++ b/lua/lspconfig/ocamllsp.lua
@@ -2,7 +2,10 @@ local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
local language_id_of = {
+ menhir = 'ocaml.menhir';
ocaml = 'ocaml';
+ ocamlinterface = 'ocaml.interface';
+ ocamllex = 'ocaml.ocamllex';
reason = 'reason';
}