lang/ocaml: add merlin-eldoc type and doc on hover display

This displays the type and documentation of thing under point
and highlights occurrences automatically when idle. Could be achieved by appropriate use of
keyboard shortcuts already set up by this module.

However `merlin-eldoc` can also display the expected type of function call parameters,
which merlin itself wouldn't.

Signed-off-by: Edwin Török <edwin@etorok.net>
This commit is contained in:
Edwin Török 2018-10-16 23:35:52 +01:00
parent 50b324b683
commit cdd39b20a5
2 changed files with 5 additions and 0 deletions

View file

@ -53,6 +53,10 @@
(add-hook 'merlin-mode-hook #'+ocaml|init-flycheck))
(def-package! merlin-eldoc
:hook (merlin-mode . merlin-eldoc-setup))
(def-package! utop
:when (featurep! :feature eval)
:defer t ; loaded by hook below