Lucccyo
December 3, 2025, 10:54am
1
Hi!
We are organizing the next public dev meeting about editors for OCaml!
It will take place at 2025-12-15T16:00:00Z .
The focus will be on the new NeoVim plugin for OCaml, which adds extra features to the classical `lspconfig` for standard LSP support, to provide all of the Merlin features in Neovim.
We will explore why having this type of plugin is beneficial for maintaining OCaml editor tools, and we will dive into the codebase to understand how it works and see what happens in Neovim.
For the agenda:
A tour-de-table to allow the participants who wish to do so to present themselves and mention issues / PRs they are interested in.
Talk and Q&A
Discuss issues and pull requests that were tagged in advance or mentioned during the tour-de-table.
Feel free to join!
Meeting link: https://meet.google.com/qxr-zxge-fvg
8 Likes
what timezone would that timestamp be for?
Lucccyo
December 3, 2025, 12:39pm
3
Central European Time, 5 pm CET.
1 Like
Is there a link to this new NeoVim plugin for OCaml?
Thank you.
I have added it to my calendar
I found these 3.
Not 100% certain it will help.
opened 06:07PM - 18 Sep 25 UTC
closed 10:47AM - 02 Oct 25 UTC
good first issue
We have editor Setup instructions for VSCode, Emacs, and Vim. However we keep en… countering Neovim users who tell us how it was not obvious how to set up OCaml support (too many choices?).
It would be great if we had some instructions in the Get Started > Editor Setup pages.
ETA: relevant file: https://github.com/ocaml/ocaml.org/blob/main/data/tutorials/getting-started/2_00_editor_setup.md
---
id: set-up-editor
title: Configuring Your Editor
description: |
This page will show you how to set up your editor for OCaml.
category: "Tooling"
---
While the toplevel is great for interactively trying out the language, we will shortly need to write OCaml files in an editor. We already installed the tools required to enhance Merlin, our editor of choice with OCaml support. Merlin provides all features such as "jump to definition," "show type," and `ocaml-lsp-server`, a server that delivers those features to the editor through the LSP server.
OCaml has plugins for many editors, but the most actively maintained are for Visual Studio Code, Emacs, and Vim.
## Visual Studio Code
> TL;DR
> Install the packages `ocaml-lsp-server` and `ocamlformat` in your [opam switch](/docs/opam-switch-introduction).
For VSCode, install the [OCaml Platform Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=ocamllabs.ocaml-platform) from the Visual Studio Marketplace. The extension depends on OCaml LSP and OCamlFormat. To install them in your switch, you can run:
```shell
opam install ocaml-lsp-server ocamlformat
```
This file has been truncated. show original
---@brief
---
--- https://github.com/ocaml/ocaml-lsp
---
--- `ocaml-lsp` can be installed as described in [installation guide](https://github.com/ocaml/ocaml-lsp#installation).
---
--- To install the lsp server in a particular opam switch:
--- ```sh
--- opam install ocaml-lsp-server
--- ```
-- https://github.com/ocaml/ocaml-lsp/blob/master/ocaml-lsp-server/docs/ocamllsp/switchImplIntf-spec.md
local function switch_impl_intf(bufnr, client)
local method_name = 'ocamllsp/switchImplIntf'
---@diagnostic disable-next-line:param-type-mismatch
if not client or not client:supports_method(method_name) then
return vim.notify(('method %s is not supported by any servers active on the current buffer'):format(method_name))
end
local uri = vim.lsp.util.make_given_range_params(nil, nil, bufnr, client.offset_encoding).textDocument.uri
if not uri then
This file has been truncated. show original
maiste
December 4, 2025, 6:57am
7
4 Likes