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"
7license: "MIT"
8build: [
9 ["dune" "subst"] {dev}
10 ["dune" "build" "-p" name "-j" jobs]
11 ["dune" "runtest" "-p" "merlin,dot-merlin-reader" "-j" "1"] {with-test & ocaml:version >= "4.03"}
12]
13depends: [
14 "ocaml" {>= "4.02.3" & < "4.12"}
15 "dune" {>= "1.8.0"}
16 "dot-merlin-reader" {>= "3.4.2"}
17 "yojson" {>= "1.6.0" & < "2.0.0"}
18 "mdx" {with-test & >= "1.3.0"}
19 "conf-jq" {with-test}
20 "csexp" {>= "1.2.3"}
21 "result" {>= "1.5"}
22 "menhir" {dev}
23 "menhirLib" {dev}
24 "menhirSdk" {dev}
25]
26conflicts: [
27 "biniou" {>= "1.2.2"}
28]
29synopsis:
30 "Editor helper, provides completion, typing and source browsing in Vim and Emacs"
31description:
32 "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."
33post-messages: [
34 "merlin installed.
35
36Quick setup for VIM
37-------------------
38Append this to your .vimrc to add merlin to vim's runtime-path:
39 let g:opamshare = substitute(system('opam var share'),'\\n$','','''')
40 execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
41
42Also run the following line in vim to index the documentation:
43 :execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
44
45Quick setup for EMACS
46-------------------
47Add opam emacs directory to your load-path by appending this to your .emacs:
48 (let ((opam-share (ignore-errors (car (process-lines \"opam\" \"config\" \"var\" \"share\")))))
49 (when (and opam-share (file-directory-p opam-share))
50 ;; Register Merlin
51 (add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
52 (autoload 'merlin-mode \"merlin\" nil t nil)
53 ;; Automatically start it in OCaml buffers
54 (add-hook 'tuareg-mode-hook 'merlin-mode t)
55 (add-hook 'caml-mode-hook 'merlin-mode t)
56 ;; Use opam switch to lookup ocamlmerlin binary
57 (setq merlin-command 'opam)))
58
59Take a look at https://github.com/ocaml/merlin for more information
60
61Quick setup with opam-user-setup
62--------------------------------
63
64Opam-user-setup support Merlin.
65
66 $ opam user-setup install
67
68should take care of basic setup.
69See https://github.com/OCamlPro/opam-user-setup
70"
71 {success & !user-setup:installed}
72]
73x-commit-hash: "9f6504e9585f8e67101d869494f9efb6dc348c9d"
74url {
75 src:
76 "https://github.com/ocaml/merlin/releases/download/v3.6.1/merlin-v3.6.1.tbz"
77 checksum: [
78 "sha256=b611b2b0bdc424629d2f6aa625fca81bb7734cb10c997eedc184c922d95cb9f6"
79 "sha512=47764d6b9483eee7e51da67d04c83b19a3b0dd406911eeef20a59dab88ab7d11ba45ae43131c61de69e3d88c65a204e76110000020871d64a2abe9cdcd361a61"
80 ]
81}