diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-05-03 22:20:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-03 22:20:39 +0100 |
commit | 726a768464d3e42869088599cf1bd049f7a751df (patch) | |
tree | 42d558ccd62eacff6736fccf37524c9bcf27d3fe /ale_linters | |
parent | 7c0219efccee6a5929274b07a594e832fd5d596a (diff) | |
parent | f11637b62b6d97be87d241476ebac9962a9a2a51 (diff) | |
download | ale-726a768464d3e42869088599cf1bd049f7a751df.zip |
Merge pull request #1550 from deivid-rodriguez/bundle_option_for_mdl
Add bundle option to mdl
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/markdown/mdl.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ale_linters/markdown/mdl.vim b/ale_linters/markdown/mdl.vim index 16b08cc5..0953144b 100644 --- a/ale_linters/markdown/mdl.vim +++ b/ale_linters/markdown/mdl.vim @@ -10,9 +10,13 @@ endfunction function! ale_linters#markdown#mdl#GetCommand(buffer) abort let l:executable = ale_linters#markdown#mdl#GetExecutable(a:buffer) + let l:exec_args = l:executable =~? 'bundle$' + \ ? ' exec mdl' + \ : '' + let l:options = ale#Var(a:buffer, 'markdown_mdl_options') - return ale#Escape(l:executable) + return ale#Escape(l:executable) . l:exec_args \ . (!empty(l:options) ? ' ' . l:options : '') endfunction |