mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -53,6 +53,10 @@
|
|||||||
(add-hook 'merlin-mode-hook #'+ocaml|init-flycheck))
|
(add-hook 'merlin-mode-hook #'+ocaml|init-flycheck))
|
||||||
|
|
||||||
|
|
||||||
|
(def-package! merlin-eldoc
|
||||||
|
:hook (merlin-mode . merlin-eldoc-setup))
|
||||||
|
|
||||||
|
|
||||||
(def-package! utop
|
(def-package! utop
|
||||||
:when (featurep! :feature eval)
|
:when (featurep! :feature eval)
|
||||||
:defer t ; loaded by hook below
|
:defer t ; loaded by hook below
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
(package! tuareg)
|
(package! tuareg)
|
||||||
(package! merlin)
|
(package! merlin)
|
||||||
|
(package! merlin-eldoc)
|
||||||
(package! ocp-indent)
|
(package! ocp-indent)
|
||||||
|
|
||||||
(when (featurep! :feature syntax-checker)
|
(when (featurep! :feature syntax-checker)
|
||||||
|
Reference in New Issue
Block a user