Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion autoload/cargo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ function! cargo#Load()
endfunction

function! cargo#cmd(args)
execute "! cargo" a:args
let cargo = exists("g:cargo_path") ? g:cargo_path : "cargo"
execute '!' . shellescape(cargo) . ' ' a:args
endfunction

function! s:nearest_cargo(...) abort
Expand Down
7 changes: 7 additions & 0 deletions doc/rust.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ g:rust_clip_command~
let g:rust_clip_command = 'xclip -selection clipboard'
<

*g:cargo_path*
g:cargo_path~
Set this option to the path to cargo for use in the |:Cargo| and
|:Cbuild| commands. If unset, "cargo" will be located in $PATH: >
let g:cargo_path = $HOME."/bin/cargo"
<


Integration with Syntastic *rust-syntastic*
--------------------------
Expand Down