diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale/zmain.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/ale/zmain.vim b/plugin/ale/zmain.vim index 26085b66..3cfe28db 100644 --- a/plugin/ale/zmain.vim +++ b/plugin/ale/zmain.vim @@ -154,6 +154,12 @@ function! s:ApplyLinter(buffer, linter) let command = a:linter.command endif + if command =~# '%s' + " If there is a '%s' in the command string, replace it with the name + " of the file. + let command = printf(command, shellescape(getbufinfo(a:buffer)[0].name)) + endif + if has('nvim') if a:linter.output_stream ==# 'stderr' " Read from stderr instead of stdout. |