You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using OCaml 5.2 and since the release of merlin-lib5.1-502, Emacs and Vim clients for merlin, as well as LSP clients for ocaml-lsp-sever can return project-wide results when searching for the occurrences of an identifier. This new feature require an index to be built beforehand.
Indexation
As of today, the simplest way to build (and keep up to date) an index of your project is to use a recent version of Dune (>= 3.16.0) and build the alias @ocaml-index in watch mode:
dune build @ocaml-index --watch
After that, it is possible to query for project-wide occurrences using: