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 & os != "macos" & ocaml:version >= "4.03"}
11]
12depends: [
13 "ocaml" {>= "4.02.3" & < "4.12"}
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]
20conflicts: [
21 "biniou" {>= "1.2.2"}
22]
23synopsis:
24 "Editor helper, provides completion, typing and source browsing in Vim and Emacs"
25description:
26 "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."
27post-messages: [
28 "merlin installed.
29
30Quick setup for VIM
31-------------------
32Append this to your .vimrc to add merlin to vim's runtime-path:
33 let g:opamshare = substitute(system('opam config var share'),'\\n$','','''')
34 execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
35
36Also run the following line in vim to index the documentation:
37 :execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
38
39Quick setup for EMACS
40-------------------
41Add opam emacs directory to your load-path by appending this to your .emacs:
42 (let ((opam-share (ignore-errors (car (process-lines \"opam\" \"config\" \"var\" \"share\")))))
43 (when (and opam-share (file-directory-p opam-share))
44 ;; Register Merlin
45 (add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
46 (autoload 'merlin-mode \"merlin\" nil t nil)
47 ;; Automatically start it in OCaml buffers
48 (add-hook 'tuareg-mode-hook 'merlin-mode t)
49 (add-hook 'caml-mode-hook 'merlin-mode t)
50 ;; Use opam switch to lookup ocamlmerlin binary
51 (setq merlin-command 'opam)))
52
53Take a look at https://github.com/ocaml/merlin for more information
54
55Quick setup with opam-user-setup
56--------------------------------
57
58Opam-user-setup support Merlin.
59
60 $ opam user-setup install
61
62should take care of basic setup.
63See https://github.com/OCamlPro/opam-user-setup
64"
65 {success & !user-setup:installed}
66]
67url {
68 src:
69 "https://github.com/ocaml/merlin/releases/download/v3.3.8/merlin-v3.3.8.tbz"
70 checksum: [
71 "sha256=249dd6456010296c5a46704afb4e67770c0ed91c27da84ae1419629870bc4748"
72 "sha512=18ab65f5635dc1b7ee514fc2f11a1a46fb788bcc5df02d904b3a8687af61d4642003ed07394481554dc0e14980b111a6ecb060c4b885661cd26e89cc06bbe807"
73 ]
74}