See https://github.com/ocaml/merlin/issues/1255 In short, `dune` should communicate a `STDLIB` directive to `merlin`.