Syaiful Bahri

OCaml.nvim

Lua

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 ocamllsp with 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 ocamlformat and ocamlformat-mlx via conform.nvim
  • 🌳 TreeSitter Integration: Enhanced syntax highlighting and code understanding
  • ⚡ Performance: Efficient client reuse and project detection

📁 Supported File Types

ExtensionLanguageDescription
.mlocamlOCaml implementation files
.mliocaml.interfaceOCaml interface files
.mllocaml.ocamllexOCaml lexer files
.mlyocaml.menhirMenhir parser files
.mlxocaml.mlxOCaml JSX files
.tocaml.cramCram test files
.rereasonReason implementation files
.reireasonReason interface files