summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/rust/rls.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/ale_linters/rust/rls.vim b/ale_linters/rust/rls.vim
index 832fe3e2..24316b04 100644
--- a/ale_linters/rust/rls.vim
+++ b/ale_linters/rust/rls.vim
@@ -12,8 +12,11 @@ function! ale_linters#rust#rls#GetCommand(buffer) abort
let l:executable = ale_linters#rust#rls#GetExecutable(a:buffer)
let l:toolchain = ale#Var(a:buffer, 'rust_rls_toolchain')
- return ale#Escape(l:executable)
- \ . ' +' . ale#Escape(l:toolchain)
+ if empty(l:toolchain)
+ return ale#Escape(l:executable)
+ else
+ return ale#Escape(l:executable) . ' +' . ale#Escape(l:toolchain)
+ endif
endfunction
function! ale_linters#rust#rls#GetLanguage(buffer) abort