diff options
| author | dkm <unitedbiscuits@gmail.com> | 2024-02-20 05:14:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 13:14:44 +0800 |
| commit | bdc29fe7f4dbb6999f4566cd2976fb4abb04d52f (patch) | |
| tree | 699e1ff6acef7adfcd8d162ddcfb1a13bee3c0ad /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-bdc29fe7f4dbb6999f4566cd2976fb4abb04d52f.tar nvim-lspconfig-bdc29fe7f4dbb6999f4566cd2976fb4abb04d52f.tar.gz nvim-lspconfig-bdc29fe7f4dbb6999f4566cd2976fb4abb04d52f.tar.bz2 nvim-lspconfig-bdc29fe7f4dbb6999f4566cd2976fb4abb04d52f.tar.lz nvim-lspconfig-bdc29fe7f4dbb6999f4566cd2976fb4abb04d52f.tar.xz nvim-lspconfig-bdc29fe7f4dbb6999f4566cd2976fb4abb04d52f.tar.zst nvim-lspconfig-bdc29fe7f4dbb6999f4566cd2976fb4abb04d52f.zip | |
fix(ocaml): trigger by filetype, not language id (#3016)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/ocamllsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/ocamllsp.lua b/lua/lspconfig/server_configurations/ocamllsp.lua index 71db1f5b..4f33c9a6 100644 --- a/lua/lspconfig/server_configurations/ocamllsp.lua +++ b/lua/lspconfig/server_configurations/ocamllsp.lua @@ -16,7 +16,7 @@ end return { default_config = { cmd = { 'ocamllsp' }, - filetypes = { 'ocaml', 'ocaml.menhir', 'ocaml.interface', 'ocaml.ocamllex', 'reason', 'dune' }, + filetypes = { 'ocaml', 'menhir', 'ocamlinterface', 'ocamllex', 'reason', 'dune' }, root_dir = util.root_pattern('*.opam', 'esy.json', 'package.json', '.git', 'dune-project', 'dune-workspace'), get_language_id = get_language_id, }, |
