Support formatting escaped executable names into commands with %e

This commit is contained in:
w0rp
2018-07-05 20:56:31 +01:00
parent f002c2c9f0
commit da692b2e2d
6 changed files with 68 additions and 19 deletions

View File

@@ -151,6 +151,8 @@ function! ale#lsp_linter#StartLSP(buffer, linter, callback) abort
return {}
endif
" Format the command, so %e can be formatted into it.
let l:command = ale#command#FormatCommand(a:buffer, l:executable, l:command, 0)[1]
let l:command = ale#job#PrepareCommand(
\ a:buffer,
\ ale#linter#GetCommand(a:buffer, a:linter),