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