This repository was archived by the owner on Sep 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ " ============================================================================
2+ " File: remark.vim
3+ " Description: Syntax checking plugin for syntastic using remark-lint
4+ " (https://github.com/remarkjs/remark-lint)
5+ " Maintainer: Tim Carry <tim at pixelastic dot com>
6+ " License: This program is free software. It comes without any warranty,
7+ " to the extent permitted by applicable law. You can redistribute
8+ " it and/or modify it under the terms of the Do What The Fuck You
9+ " Want To Public License, Version 2, as published by Sam Hocevar.
10+ " See http://sam.zoy.org/wtfpl/COPYING for more details.
11+ "
12+ " ============================================================================
13+
14+ if exists (' g:loaded_syntastic_markdown_remark_lint_checker' )
15+ finish
16+ endif
17+ let g: loaded_syntastic_markdown_remark_lint_checker = 1
18+
19+ let s: save_cpo = &cpo
20+ set cpo &vim
21+
22+ function ! SyntaxCheckers_markdown_remark_lint_GetLocList () dict
23+ let makeprg = self .makeprgBuild ({
24+ \' args_before' : ' -- quiet -- no -stdout --no-color' })
25+
26+ let errorformat =
27+ \ ' %l:%c %tarning %m'
28+
29+ return SyntasticMake ({
30+ \ ' makeprg' : makeprg ,
31+ \ ' errorformat' : errorformat ,
32+ \ ' defaults' : {' bufnr' : bufnr (' ' )},
33+ \ ' returns' : [0 ] })
34+ endfunction
35+
36+ call g: SyntasticRegistry .CreateAndRegisterChecker ({
37+ \ ' filetype' : ' markdown' ,
38+ \ ' name' : ' remark_lint' ,
39+ \ ' exec' : ' remark' })
40+
41+ let &cpo = s: save_cpo
42+ unlet s: save_cpo
43+
44+ " vim: set sw = 4 sts = 4 et fdm = marker:
You can’t perform that action at this time.
0 commit comments