Fork of zed-extensions/ocaml
  • Tree-sitter Query 65.5%
  • Rust 34.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zed-zippy[bot] 626cf8e761
Update CI workflows to 3183c04 (#46)
This PR updates the CI workflow files from the main Zed repository
based on the commit
zed-industries/zed@3183c04515

The update includes a new version of the extension CLI which adds
validation for semantic token rules for languages

Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
2026-03-25 18:55:39 +00:00
.github/workflows Update CI workflows to 3183c04 (#46) 2026-03-25 18:55:39 +00:00
languages Format Tree-sitter query files (#42) 2026-03-11 18:41:55 +00:00
src Use correct project root for Dune package management detection (#38) 2026-03-11 19:27:23 +01:00
.gitignore Add Reason + Reason Interface (#14) 2025-09-24 09:05:53 -04:00
Cargo.lock Bump version to 0.3.1 (#41) 2026-03-11 18:48:02 +00:00
Cargo.toml Bump version to 0.3.1 (#41) 2026-03-11 18:48:02 +00:00
extension.toml Bump version to 0.3.1 (#41) 2026-03-11 18:48:02 +00:00
LICENSE Apply post-extraction changes 2024-11-18 11:15:19 -05:00
README.md Document Dune Package Management LSP support in README (#32) 2026-02-23 19:55:20 +01:00

Zed OCaml

An OCaml extension for Zed.

Language Server

The extension automatically detects how to start ocamllsp based on your project setup, using the following priority order:

  1. Dune Package Management — If dune is in PATH and dune pkg enabled succeeds, starts the LSP via dune tools exec ocamllsp.
  2. opam — If opam is in PATH, starts via opam exec -- ocamllsp. If a local switch (_opam/) is found in the project root, it is used automatically.
  3. Direct — Falls back to running ocamllsp directly from PATH.

Configuration

OCamllsp can be configured via Zed settings.json. For instance, all inlay hints can be enabled using the following:

  "lsp": {
    "ocamllsp": {
      "settings": {
        "inlayHints": {
          "hintFunctionParams": true,
          "hintPatternVariables": true,
          "hintLetBindings": true
        }
      }
    }
  }

The configuration options available are documented here.

Development

To develop this extension, see the Developing Extensions section of the Zed docs.