Skip to content

Commit 9b4e8e8

Browse files
Infernioda-x
authored andcommitted
Implement the remaining cargo# functions
The :Cupdate, :Csearch, :Cpublish and :Cinstall commands call these functions, but they don't actually exist, and so you just get an error if you try.
1 parent db0137d commit 9b4e8e8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

autoload/cargo.vim

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,22 @@ function! cargo#bench(args)
100100
call cargo#cmd("bench " . a:args)
101101
endfunction
102102

103+
function! cargo#update(args)
104+
call cargo#cmd("update " . a:args)
105+
endfunction
106+
107+
function! cargo#search(args)
108+
call cargo#cmd("search " . a:args)
109+
endfunction
110+
111+
function! cargo#publish(args)
112+
call cargo#cmd("publish " . a:args)
113+
endfunction
114+
115+
function! cargo#install(args)
116+
call cargo#cmd("install " . a:args)
117+
endfunction
118+
103119
function! cargo#runtarget(args)
104120
let l:filename = expand('%:p')
105121
let l:read_manifest = system('cargo read-manifest')

0 commit comments

Comments
 (0)