From 34431d885b09b84af5d34622879053fb8f4dc8d4 Mon Sep 17 00:00:00 2001 From: statquant Date: Sat, 14 Sep 2019 15:55:04 +0100 Subject: [PATCH] Adding linting for rmd filetype (duplicate of rmarkdown) --- autoload/ale/fix/registry.vim | 2 +- autoload/ale/linter.vim | 1 + doc/ale.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim index ace37207..750d2196 100644 --- a/autoload/ale/fix/registry.vim +++ b/autoload/ale/fix/registry.vim @@ -322,7 +322,7 @@ let s:default_registry = { \ }, \ 'styler': { \ 'function': 'ale#fixers#styler#Fix', -\ 'suggested_filetypes': ['r', 'rmarkdown'], +\ 'suggested_filetypes': ['r', 'rmarkdown', 'rmd'], \ 'description': 'Fix R files with styler.', \ }, \ 'latexindent': { diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index 78dcd3a2..167dab1c 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -14,6 +14,7 @@ let s:default_ale_linter_aliases = { \ 'csh': 'sh', \ 'plaintex': 'tex', \ 'rmarkdown': 'r', +\ 'rmd': 'r', \ 'systemverilog': 'verilog', \ 'verilog_systemverilog': ['verilog_systemverilog', 'verilog'], \ 'vimwiki': 'markdown', diff --git a/doc/ale.txt b/doc/ale.txt index 5a123921..4bc69549 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1043,6 +1043,7 @@ g:ale_linter_aliases *g:ale_linter_aliases* \ 'csh': 'sh', \ 'plaintex': 'tex', \ 'rmarkdown': 'r', + \ 'rmd': 'r', \ 'systemverilog': 'verilog', \ 'verilog_systemverilog': ['verilog_systemverilog', 'verilog'], \ 'vimwiki': 'markdown',