1# OCaml
2
3- Tree Sitter: [tree-sitter-ocaml](https://github.com/tree-sitter/tree-sitter-ocaml)
4- Language Server: [ocamllsp](https://github.com/ocaml/ocaml-lsp)
5
6## Setup Instructions
7If you have the development environment already setup, you can skip to [Launching Zed](#launching-zed)
8
9### Using OPAM
10Opam 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).
11
12Once you install opam and setup a switch with your development environment as per the instructions, you can proceed.
13
14### Launching Zed
15By now you should have `ocamllsp` installed, you can verify so by running
16
17```sh
18$ ocamllsp --help
19```
20
21in 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.
22
23With 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.
24
25Once you have the cli, simply from a terminal, navigate to your project and run
26
27```sh
28$ zed .
29```
30
31Voila! You should have Zed running with OCaml support, no additional setup required.