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:
parent
50b324b683
commit
cdd39b20a5
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
(package! tuareg)
|
||||
(package! merlin)
|
||||
(package! merlin-eldoc)
|
||||
(package! ocp-indent)
|
||||
|
||||
(when (featurep! :feature syntax-checker)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue