Fork of zed-extensions/ocaml
- Tree-sitter Query 65.5%
- Rust 34.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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> |
||
| .github/workflows | ||
| languages | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| extension.toml | ||
| LICENSE | ||
| README.md | ||
Zed OCaml
Language Server
The extension automatically detects how to start ocamllsp based on your project setup, using the following priority order:
- Dune Package Management — If
duneis in PATH anddune pkg enabledsucceeds, starts the LSP viadune tools exec ocamllsp. - opam — If
opamis in PATH, starts viaopam exec -- ocamllsp. If a local switch (_opam/) is found in the project root, it is used automatically. - Direct — Falls back to running
ocamllspdirectly 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.