File tree Expand file tree Collapse file tree 5 files changed +32
-0
lines changed
syntax_checkers/ocamlinterface Expand file tree Collapse file tree 5 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 13
13
(ftdetect/merlin.vim as vim/ftdetect/merlin.vim)
14
14
(ftplugin/merlin.vim as vim/ftplugin/merlin.vim)
15
15
(ftplugin/ocaml.vim as vim/ftplugin/ocaml.vim)
16
+ (ftplugin/ocamlinterface.vim as vim/ftplugin/ocamlinterface.vim)
17
+ (ftplugin/ocamllex.vim as vim/ftplugin/ocamllex.vim)
16
18
(ftplugin/omlet.vim as vim/ftplugin/omlet.vim)
17
19
(ftplugin/reason.vim as vim/ftplugin/reason.vim)
18
20
(plugin/merlin.vim as vim/plugin/merlin.vim)
19
21
(syntax_checkers/ocaml/merlin.vim as vim/syntax_checkers/ocaml/merlin.vim)
22
+ (syntax_checkers/ocamlinterface/merlin.vim as vim/syntax_checkers/ocamlinterface/merlin.vim)
20
23
(syntax_checkers/omlet/merlin.vim as vim/syntax_checkers/omlet/merlin.vim)
21
24
(syntax/merlin.vim as vim/syntax/merlin.vim)))
Original file line number Diff line number Diff line change
1
+ " Activate merlin on current buffer
2
+ call merlin#Register ()
Original file line number Diff line number Diff line change
1
+ " Activate merlin on current buffer
2
+ call merlin#Register ()
Original file line number Diff line number Diff line change
1
+ " Activate merlin on current buffer
2
+ call merlin#Register ()
Original file line number Diff line number Diff line change
1
+ " Enable Syntastic support
2
+ " Make sure syntax_checkers directory is on runtime path, then set
3
+ " :let g:syntastic_ocamlinterface_checkers=['merlin']
4
+
5
+ function ! SyntaxCheckers_ocamlinterface_merlin_IsAvailable ()
6
+ if ! exists (" *merlin#SelectBinary" )
7
+ return 0
8
+ endif
9
+ try
10
+ let l: path = merlin#SelectBinary ()
11
+ return executable (l: path )
12
+ catch
13
+ return 0
14
+ endtry
15
+ endfunction
16
+
17
+ function ! SyntaxCheckers_ocamlinterface_merlin_GetLocList ()
18
+ return merlin#ErrorLocList ()
19
+ endfunction
20
+
21
+ call g: SyntasticRegistry .CreateAndRegisterChecker ({
22
+ \ ' filetype' : ' ocamlinterface' ,
23
+ \ ' name' : ' merlin' })
You can’t perform that action at this time.
0 commit comments