mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-14 00:48:57 +08:00
Add bundle option to mdl
This commit is contained in:
1 parent
ae85695543
commit
f11637b62b
3 files changed
+14
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user