diff options
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/erlang/syntaxerl.vim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ale_linters/erlang/syntaxerl.vim b/ale_linters/erlang/syntaxerl.vim index 7a94856a..e7d006b4 100644 --- a/ale_linters/erlang/syntaxerl.vim +++ b/ale_linters/erlang/syntaxerl.vim @@ -2,6 +2,7 @@ " Description: SyntaxErl linter for Erlang files call ale#Set('erlang_syntaxerl_executable', 'syntaxerl') +call ale#Set('erlang_syntaxerl_use_basename', 0) function! ale_linters#erlang#syntaxerl#GetExecutable(buffer) abort @@ -10,7 +11,13 @@ endfunction function! ale_linters#erlang#syntaxerl#GetCommand(buffer) abort - return ale_linters#erlang#syntaxerl#GetExecutable(a:buffer) . ' -b %s %t' + let l:base_options = ale#Var(a:buffer, 'erlang_syntaxerl_use_basename') + \ ? ' -b %s' + \ : '' + + return ale_linters#erlang#syntaxerl#GetExecutable(a:buffer) + \ . l:base_options + \ . ' %t' endfunction |