aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/ocamllsp.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-11-24 23:01:07 -0500
committerMichael Lingelbach <m.j.lbach@gmail.com>2021-11-25 23:46:21 -0500
commit6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e (patch)
tree7f2bf25ca5456b23304295dba8fe0005e85a5c10 /lua/lspconfig/ocamllsp.lua
parentfix: only set cmd_cwd if filepath exists (#1485) (diff)
downloadnvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.gz
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.bz2
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.lz
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.xz
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.tar.zst
nvim-lspconfig-6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e.zip
feat: expose configs
Diffstat (limited to 'lua/lspconfig/ocamllsp.lua')
-rw-r--r--lua/lspconfig/ocamllsp.lua39
1 files changed, 0 insertions, 39 deletions
diff --git a/lua/lspconfig/ocamllsp.lua b/lua/lspconfig/ocamllsp.lua
deleted file mode 100644
index aa954256..00000000
--- a/lua/lspconfig/ocamllsp.lua
+++ /dev/null
@@ -1,39 +0,0 @@
-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',
-}
-
-local get_language_id = function(_, ftype)
- return language_id_of[ftype]
-end
-
-configs.ocamllsp = {
- default_config = {
- cmd = { 'ocamllsp' },
- filetypes = { 'ocaml', 'ocaml.menhir', 'ocaml.interface', 'ocaml.ocamllex', 'reason' },
- root_dir = util.root_pattern('*.opam', 'esy.json', 'package.json', '.git'),
- get_language_id = get_language_id,
- },
- docs = {
- description = [[
-https://github.com/ocaml/ocaml-lsp
-
-`ocaml-lsp` can be installed as described in [installation guide](https://github.com/ocaml/ocaml-lsp#installation).
-
-To install the lsp server in a particular opam switch:
-```sh
-opam pin add ocaml-lsp-server https://github.com/ocaml/ocaml-lsp.git
-opam install ocaml-lsp-server
-```
- ]],
- default_config = {
- root_dir = [[root_pattern("*.opam", "esy.json", "package.json", ".git")]],
- },
- },
-}