lang/ocaml: enable merlin-imenu and merlin-iedit (part of merlin)
merlin-imenu works nicely with `SPC / i`. merlin-iedit is a refactoring tool that locates all occurences of an identifier in scope and you can use multiple cursors to edit. integration with evil-multiedit could be better. There is also a merlin-xref backend, but since we got the individual def/lookup/etc. already bound not sure if it is worth using it. Signed-off-by: Edwin Török <edwin@etorok.net>
This commit is contained in:
parent
cdd39b20a5
commit
a4a42d3141
1 changed files with 13 additions and 0 deletions
|
@ -57,6 +57,19 @@
|
|||
:hook (merlin-mode . merlin-eldoc-setup))
|
||||
|
||||
|
||||
(def-package! merlin-iedit
|
||||
:when (featurep! :editor multiple-cursors)
|
||||
:hook (merlin-mode . merlin-use-merlin-imenu)
|
||||
:config
|
||||
(map! :map tuareg-mode-map
|
||||
:v "R" #'merlin-iedit-occurrences))
|
||||
|
||||
|
||||
(def-package! merlin-imenu
|
||||
:when (featurep! :emacs imenu)
|
||||
:hook (merlin-mode . merlin-use-merlin-imenu))
|
||||
|
||||
|
||||
(def-package! utop
|
||||
:when (featurep! :feature eval)
|
||||
:defer t ; loaded by hook below
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue