Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using merlin in vim for coq plugin development in ocaml

I installed Coq with opam and want to make a Coq plugin. I managed to compile some plugin examples using coq_makefile, but it would be great if I could use merlin in vim for type information and completion for Coq libraries.

Is there a way in which I can add the Coq libraries to ocamlfind?

like image 733
Nico Lehmann Avatar asked Apr 14 '15 01:04

Nico Lehmann


2 Answers

coq_makefile will now generate a .merlin for you. Just type

make .merlin
like image 176
daejk Avatar answered Nov 02 '22 13:11

daejk


Finally I answered myself. It was onlly necesary to put the directories of the cmi files of coq in the .merlin file with the directive B

B path/to/coq/kernel
B path/to/coq/library
...
like image 25
Nico Lehmann Avatar answered Nov 02 '22 13:11

Nico Lehmann