summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-05-01 19:29:06 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-05-01 19:49:45 -0300
commitf11637b62b6d97be87d241476ebac9962a9a2a51 (patch)
tree19665b45e32d5707184aced08ecac2d798ec99c9 /ale_linters
parentae85695543c1e303ba062a5359a82c82cac53fd3 (diff)
downloadale-f11637b62b6d97be87d241476ebac9962a9a2a51.zip
Add bundle option to mdl
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/markdown/mdl.vim6
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