OCaml.nvim
OCaml.nvim is a Neovim plugin designed to enhance the OCaml development experience by providing intelligent sandbox detection, LSP integration, and comprehensive filetype support.
✨ Features
- 🎯 Smart LSP Integration: Automatic detection and setup of
ocamllspwith sandbox support - 📦 Sandbox Detection: Supports esy projects with automatic command resolution
- 🎨 Multiple Filetypes: Support for OCaml, Reason, and various OCaml file formats
- 🔧 Automatic Formatting: Integration with
ocamlformatandocamlformat-mlxvia conform.nvim - 🌳 TreeSitter Integration: Enhanced syntax highlighting and code understanding
- ⚡ Performance: Efficient client reuse and project detection
📁 Supported File Types
| Extension | Language | Description |
|---|---|---|
.ml | ocaml | OCaml implementation files |
.mli | ocaml.interface | OCaml interface files |
.mll | ocaml.ocamllex | OCaml lexer files |
.mly | ocaml.menhir | Menhir parser files |
.mlx | ocaml.mlx | OCaml JSX files |
.t | ocaml.cram | Cram test files |
.re | reason | Reason implementation files |
.rei | reason | Reason interface files |