diff options
author | Thibault Vatter <thibault.vatter@gmail.com> | 2019-06-10 14:27:42 -0400 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2019-06-10 19:27:42 +0100 |
commit | 22e7a6f6c2914a2fd77085f1241bc6907bd85c06 (patch) | |
tree | cdfa42cc16c90ebc05908428c652b82aaa184114 /autoload | |
parent | 1ba1a9ef0e0d6ea9331498dd84196de3e494e4a0 (diff) | |
download | ale-22e7a6f6c2914a2fd77085f1241bc6907bd85c06.zip |
Make rmarkdown files work with styler and lintr (#2564)
* add R markdown as filetype for styler
* Add rmarkdown as an alias for R
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fix/registry.vim | 2 | ||||
-rw-r--r-- | autoload/ale/linter.vim | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim index 925181ca..d72877af 100644 --- a/autoload/ale/fix/registry.vim +++ b/autoload/ale/fix/registry.vim @@ -297,7 +297,7 @@ let s:default_registry = { \ }, \ 'styler': { \ 'function': 'ale#fixers#styler#Fix', -\ 'suggested_filetypes': ['r'], +\ 'suggested_filetypes': ['r', 'rmarkdown'], \ 'description': 'Fix R files with styler.', \ }, \ 'latexindent': { diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index 3cbcaf8c..6a714d6a 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -13,6 +13,7 @@ let s:default_ale_linter_aliases = { \ 'Dockerfile': 'dockerfile', \ 'csh': 'sh', \ 'plaintex': 'tex', +\ 'rmarkdown': 'r', \ 'systemverilog': 'verilog', \ 'verilog_systemverilog': ['verilog_systemverilog', 'verilog'], \ 'vimwiki': 'markdown', |