diff --git a/plugin/syntastic/registry.vim b/plugin/syntastic/registry.vim index 069ae97e..d46484da 100644 --- a/plugin/syntastic/registry.vim +++ b/plugin/syntastic/registry.vim @@ -71,6 +71,7 @@ let s:_DEFAULT_CHECKERS = { \ 'python': ['python', 'flake8', 'pylint'], \ 'qml': ['qmllint'], \ 'r': [], + \ 'rmd': [], \ 'racket': ['racket'], \ 'rnc': ['rnv'], \ 'rst': ['rst2pseudoxml'], diff --git a/syntax_checkers/rmd/lintr.vim b/syntax_checkers/rmd/lintr.vim new file mode 100644 index 00000000..bda10afc --- /dev/null +++ b/syntax_checkers/rmd/lintr.vim @@ -0,0 +1,13 @@ +if exists('g:loaded_syntastic_rmd_lintr_checker') + finish +endif +let g:loaded_syntastic_rmd_lintr_checker = 1 + +runtime! syntax_checkers/r/lintr.vim + +call g:SyntasticRegistry.CreateAndRegisterChecker({ + \ 'filetype': 'rmd', + \ 'name': 'lintr', + \ 'redirect': 'r/lintr'}) + +" vim: set et sts=4 sw=4: