···
2
+
maintainer: "defree@gmail.com"
3
+
authors: "The Merlin team"
4
+
homepage: "https://github.com/ocaml/merlin"
5
+
bug-reports: "https://github.com/ocaml/merlin/issues"
6
+
dev-repo: "git+https://github.com/ocaml/merlin.git"
9
+
["dune" "subst"] {dev}
10
+
["dune" "build" "-p" name "-j" jobs]
11
+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
14
+
"ocaml" {>= "4.14" & < "4.15"}
16
+
"merlin-lib" {= version}
17
+
"dot-merlin-reader" {>= "4.6"}
18
+
"yojson" {>= "2.0.0"}
19
+
"conf-jq" {with-test}
26
+
"Editor helper, provides completion, typing and source browsing in Vim and Emacs"
28
+
"Merlin is an assistant for editing OCaml code. It aims to provide the features available in modern IDEs: error reporting, auto completion, source browsing and much more."
34
+
Append this to your .vimrc to add merlin to vim's runtime-path:
35
+
let g:opamshare = substitute(system('opam var share'),'\\n$','','''')
36
+
execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
38
+
Also run the following line in vim to index the documentation:
39
+
:execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
41
+
Quick setup for EMACS
43
+
Add opam emacs directory to your load-path by appending this to your .emacs:
44
+
(let ((opam-share (ignore-errors (car (process-lines \"opam\" \"var\" \"share\")))))
45
+
(when (and opam-share (file-directory-p opam-share))
47
+
(add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
48
+
(autoload 'merlin-mode \"merlin\" nil t nil)
49
+
;; Automatically start it in OCaml buffers
50
+
(add-hook 'tuareg-mode-hook 'merlin-mode t)
51
+
(add-hook 'caml-mode-hook 'merlin-mode t)
52
+
;; Use opam switch to lookup ocamlmerlin binary
53
+
(setq merlin-command 'opam)))
55
+
Take a look at https://github.com/ocaml/merlin for more information
57
+
Quick setup with opam-user-setup
58
+
--------------------------------
60
+
Opam-user-setup support Merlin.
62
+
$ opam user-setup install
64
+
should take care of basic setup.
65
+
See https://github.com/OCamlPro/opam-user-setup
67
+
{success & !user-setup:installed}
71
+
"https://github.com/ocaml/merlin/releases/download/v4.6-414/merlin-4.6-414.tbz"
73
+
"sha256=02ebd70a3c77d8940163dbe4c40774a448ed145ea84e0ad3d5ff5324410393ce"
74
+
"sha512=7373fadf05c692c9f054c7fe6a7d4bdfeefe237b9df432024ef9923782ee72e09021c0c3fba869da8347728105cb2d3ff0aa94b0c5eb09811bb25aa8da9fb520"
77
+
x-commit-hash: "be753d9412387aedcf32aba88a1be9bcd33d97ba"