1# OCaml
2
3OCaml support is available through the [OCaml extension](https://github.com/zed-extensions/ocaml).
4
5- Tree-sitter: [tree-sitter/tree-sitter-ocaml](https://github.com/tree-sitter/tree-sitter-ocaml)
6- Language Server: [ocaml/ocaml-lsp](https://github.com/ocaml/ocaml-lsp)
7
8## Setup Instructions
9
10If you have the development environment already setup, you can skip to [Launching Zed](#launching-zed)
11
12### Using Opam
13
14Opam is the official package manager for OCaml and is highly recommended for getting started with OCaml. To get started using Opam, please follow the instructions provided [here](https://ocaml.org/install).
15
16Once you install opam and setup a switch with your development environment as per the instructions, you can proceed.
17
18### Launching Zed
19
20By now you should have `ocamllsp` installed, you can verify so by running
21
22```sh
23ocamllsp --help
24```
25
26in your terminal. If you get a help message, you're good to go. If not, please revisit the installation instructions for `ocamllsp` and ensure it's properly installed.
27
28With that aside, we can now launch Zed. Given how the OCaml package manager works, we require you to run Zed from the terminal, so please make sure you install the [Zed cli](https://zed.dev/features#cli) if you haven't already.
29
30Once you have the cli, simply from a terminal, navigate to your project and run
31
32```sh
33zed .
34```
35
36Voila! You should have Zed running with OCaml support, no additional setup required.