summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Vatter <thibault.vatter@gmail.com>2019-06-10 14:27:42 -0400
committerw0rp <w0rp@users.noreply.github.com>2019-06-10 19:27:42 +0100
commit22e7a6f6c2914a2fd77085f1241bc6907bd85c06 (patch)
treecdfa42cc16c90ebc05908428c652b82aaa184114
parent1ba1a9ef0e0d6ea9331498dd84196de3e494e4a0 (diff)
downloadale-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
-rw-r--r--autoload/ale/fix/registry.vim2
-rw-r--r--autoload/ale/linter.vim1
-rw-r--r--doc/ale.txt1
3 files changed, 3 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',
diff --git a/doc/ale.txt b/doc/ale.txt
index 19f2f48b..da001c4d 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1012,6 +1012,7 @@ g:ale_linter_aliases *g:ale_linter_aliases*
\ 'Dockerfile': 'dockerfile',
\ 'csh': 'sh',
\ 'plaintex': 'tex',
+ \ 'rmarkdown': 'r',
\ 'systemverilog': 'verilog',
\ 'verilog_systemverilog': ['verilog_systemverilog', 'verilog'],
\ 'vimwiki': 'markdown',