Add it in Tori
- Open Settings with the gear in the title bar.
- Go to LSP.
- OCaml is already there: it ships inside Tori. When the catalog has a newer version, Add a language lists it with Update.
Adding writes one file and runs nothing. Tori then shows how to install the tool itself.
Use it without the catalog
Download the file and drop it in the folder below. Tori loads it the next time it starts.
Download file ocaml.toml
~/.config/tori/packs/lsp/
The file
ocaml.tomlRead only
1# OCaml via `ocamllsp`, which its own toolchain installs, so Tori2# offers a hint rather than an install. See LSP-SERVERS.md.34schema_version = 15id = "ocaml"6label = "OCaml"7description = "OCaml, through ocaml-lsp"8license = "Apache-2.0"9contributor = { name = "Tori", github = "gettori" }10verified_against = "ocaml-lsp-server 1.26.0 (OCaml 5.4.1)"11verified_on = "2026-10-09"12root_markers = ["dune-project", "dune-workspace", ".git"]1314# Reads what dune builds, and ppx rewriters run during that build.15runs_project_code = true1617[languages]18ml = "ocaml"19mli = "ocaml.interface"2021[launch]22kind = "path"23program = "ocamllsp"24args = []2526[install]27kind = "hint"28text = "Install it with `opam install ocaml-lsp-server`."29update = "opam upgrade ocaml-lsp-server"30uninstall = "opam remove ocaml-lsp-server"