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"
2323```
2424In this example after every ` composer install ` I exec a ctags generation
2525
26+ ``` vim
27+ :ComposerUpdate [--no-dev ..]
28+ ```
29+ This command exec ` composer update ` .
30+
2631``` vim
2732:ComposerJSON
2833```
Original file line number Diff line number Diff line change 2424
2525command ! -narg =* ComposerRun call s: ComposerRunFunc (<q-args> )
2626command ! -narg =* ComposerInstall call s: ComposerInstallFunc (<q-args> )
27+ command ! -narg =* ComposerUpdate call s: ComposerUpdateFunc (<q-args> )
2728command ! ComposerGet call s: ComposerGetFunc ()
2829command ! ComposerJSON call s: OpenComposerJSON ()
2930
@@ -55,6 +56,10 @@ function! s:ComposerInstallFunc(arg)
5556 endif
5657endfunction
5758
59+ function ! s: ComposerUpdateFunc (arg)
60+ exe s: ComposerRunFunc (" update" )
61+ endfunction
62+
5863function ! g: ComposerKnowWhereCurrentFileIs ()
5964 let g: currentWord = expand (' <cword>' )
6065 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