Skip to content

Commit

Permalink
ocamllsp: add more filetypes
Browse files Browse the repository at this point in the history
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
ocaml/vim-ocaml#61
  • Loading branch information
psafont committed May 17, 2021
1 parent 4eefe55 commit 40a6c93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lspconfig/ocamllsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 40a6c93

Please sign in to comment.