this repo has no description
1opam-version: "2.0"
2maintainer: "defree@gmail.com"
3authors: "The Merlin team"
4homepage: "https://github.com/ocaml/merlin"
5bug-reports: "https://github.com/ocaml/merlin/issues"
6dev-repo: "git+https://github.com/ocaml/merlin.git"
7build: [
8 ["dune" "subst"] {dev}
9 ["dune" "build" "-p" name "-j" jobs]
10 ["dune" "runtest" "-p" name "-j" jobs] {with-test}
11]
12depends: [
13 "ocaml" {>= "4.02.1" & < "4.10"}
14 "dune" {>= "1.8.0"}
15 "ocamlfind" {>= "1.5.2"}
16 "yojson" {>= "1.6.0" & < "2.0.0"}
17 "mdx" {with-test & >= "1.3.0"}
18 "conf-jq" {with-test}
19]
20synopsis:
21 "Editor helper, provides completion, typing and source browsing in Vim and Emacs"
22description:
23 "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."
24post-messages: [
25 "merlin installed.
26
27Quick setup for VIM
28-------------------
29Append this to your .vimrc to add merlin to vim's runtime-path:
30 let g:opamshare = substitute(system('opam config var share'),'\\n$','','''')
31 execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
32
33Also run the following line in vim to index the documentation:
34 :execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
35
36Quick setup for EMACS
37-------------------
38Add opam emacs directory to your load-path by appending this to your .emacs:
39 (let ((opam-share (ignore-errors (car (process-lines \"opam\" \"config\" \"var\" \"share\")))))
40 (when (and opam-share (file-directory-p opam-share))
41 ;; Register Merlin
42 (add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
43 (autoload 'merlin-mode \"merlin\" nil t nil)
44 ;; Automatically start it in OCaml buffers
45 (add-hook 'tuareg-mode-hook 'merlin-mode t)
46 (add-hook 'caml-mode-hook 'merlin-mode t)
47 ;; Use opam switch to lookup ocamlmerlin binary
48 (setq merlin-command 'opam)))
49
50Take a look at https://github.com/ocaml/merlin for more information
51
52Quick setup with opam-user-setup
53--------------------------------
54
55Opam-user-setup support Merlin.
56
57 $ opam user-setup install
58
59should take care of basic setup.
60See https://github.com/OCamlPro/opam-user-setup
61"
62 {success & !user-setup:installed}
63]
64url {
65 src:
66 "https://github.com/ocaml/merlin/releases/download/v3.3.3/merlin-v3.3.3.tbz"
67 checksum: [
68 "sha256=72909ef47eea1f6fca13b4109a34dccf8fe3923a3c026f1ed1db9eb5ee9aae15"
69 "sha512=2a5f39d966be56c1322982effc05bc98fd5f66cd12f1f76953f8daa9eca74a58c92a186854f4e601e2f0bb038720691446e7591b4613982accded3e579fedb23"
70 ]
71}