File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ let g:composer_install_callback = "MyCallbackFunction"
23
23
```
24
24
In this example after every ` composer install ` I exec a ctags generation
25
25
26
+ ``` vim
27
+ :ComposerUpdate [--no-dev ..]
28
+ ```
29
+ This command exec ` composer update ` .
30
+
26
31
``` vim
27
32
:ComposerJSON
28
33
```
Original file line number Diff line number Diff line change 24
24
25
25
command ! -narg =* ComposerRun call s: ComposerRunFunc (<q-args> )
26
26
command ! -narg =* ComposerInstall call s: ComposerInstallFunc (<q-args> )
27
+ command ! -narg =* ComposerUpdate call s: ComposerUpdateFunc (<q-args> )
27
28
command ! ComposerGet call s: ComposerGetFunc ()
28
29
command ! ComposerJSON call s: OpenComposerJSON ()
29
30
@@ -55,6 +56,10 @@ function! s:ComposerInstallFunc(arg)
55
56
endif
56
57
endfunction
57
58
59
+ function ! s: ComposerUpdateFunc (arg)
60
+ exe s: ComposerRunFunc (" update" )
61
+ endfunction
62
+
58
63
function ! g: ComposerKnowWhereCurrentFileIs ()
59
64
let g: currentWord = expand (' <cword>' )
60
65
let l: command = " grep " . g: currentWord . " ./vendor/composer -R | awk '{print $6}' | awk -F\\ ' '{print $2}'"
You can’t perform that action at this time.
0 commit comments