For the Neovim-specific use case, you may want to take a look at vcaml, which lets you write OCaml programs that interact with Neovim over msgpack RPC. Do note though that while the library as-is should provide you with the functionality you need, it is under active development so the API may change (improve) in significant ways between releases.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Community help/advices need for ocaml-lua | 5 | 921 | August 21, 2019 | |
| Can I use js_of_ocaml as a compiler in the browser? | 8 | 2142 | November 22, 2017 | |
| Using Reason libraries from pure OCaml | 8 | 3106 | January 10, 2018 | |
| JS_of_OCaml vs Bucklescript | 32 | 11205 | October 31, 2018 | |
| LLVM Backend for OCaml | 12 | 8975 | November 19, 2017 |