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" "1"] {with-test & ocaml:version >= "4.03"}
11]
12depends: [
13 "ocaml" {>= "4.02.3" & < "4.12"}
14 "dune" {>= "1.8.0"}
15 "dot-merlin-reader" {= version}
16 "yojson" {>= "1.6.0" & < "2.0.0"}
17 "mdx" {with-test & >= "1.3.0"}
18 "conf-jq" {with-test}
19 "csexp" {>= "1.2.3"}
20 "result" {>= "1.5"}
21]
22conflicts: [
23 "biniou" {>= "1.2.2"}
24]
25synopsis:
26 "Editor helper, provides completion, typing and source browsing in Vim and Emacs"
27description:
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."
29post-messages: [
30 "merlin installed.
31
32Quick setup for VIM
33-------------------
34Append this to your .vimrc to add merlin to vim's runtime-path:
35 let g:opamshare = substitute(system('opam config var share'),'\\n$','','''')
36 execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
37
38Also run the following line in vim to index the documentation:
39 :execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
40
41Quick setup for EMACS
42-------------------
43Add opam emacs directory to your load-path by appending this to your .emacs:
44 (let ((opam-share (ignore-errors (car (process-lines \"opam\" \"config\" \"var\" \"share\")))))
45 (when (and opam-share (file-directory-p opam-share))
46 ;; Register Merlin
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)))
54
55Take a look at https://github.com/ocaml/merlin for more information
56
57Quick setup with opam-user-setup
58--------------------------------
59
60Opam-user-setup support Merlin.
61
62 $ opam user-setup install
63
64should take care of basic setup.
65See https://github.com/OCamlPro/opam-user-setup
66"
67 {success & !user-setup:installed}
68]
69x-commit-hash: "c9761a552380838e9f530b5c47c0ea3c47c33565"
70url {
71 src:
72 "https://github.com/ocaml/merlin/releases/download/v3.4.2/merlin-v3.4.2.tbz"
73 checksum: [
74 "sha256=e1b7b897b11119d92995c558530149fd07bd67a4aaf140f55f3c4ffb5e882a81"
75 "sha512=7c39c70fc923971c4eca9432061077941498574c0b804efc20af244c1c9ab34c9178d7eb50ab750feaac30696e7ff911a0ccd5fb86341b68485bedae472aa15f"
76 ]
77}