File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ This command exec the installation flow of composer's install. This process requ
15
15
:ComposerInstall [--no-dev ..]
16
16
```
17
17
This command exec ` composer install ` . Now you can attach after this command a custom callback to exec your personal flow.
18
+
19
+ ``` vim
20
+ :ComposerInit [--no-dev ..]
21
+ ```
22
+ This command exec ` composer init ` .
23
+
18
24
``` vim
19
25
function! MyCallbackFunction()
20
26
exec ':silent ! ctags -a %'
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 =* ComposerInit call s: ComposerInit (<q-args> )
27
28
command ! -narg =* ComposerUpdate call s: ComposerUpdateFunc (<q-args> )
28
29
command ! -narg =* ComposerRequire call s: ComposerRequireFunc (<q-args> )
29
30
@@ -58,6 +59,13 @@ function! s:ComposerInstallFunc(arg)
58
59
endif
59
60
endfunction
60
61
62
+ function ! s: ComposerInit (arg)
63
+ exe s: ComposerRunFunc (" init" )
64
+ if len (g: composer_install_callback ) > 0
65
+ exe " call " .g: composer_install_callback ." ()"
66
+ endif
67
+ endfunction
68
+
61
69
function ! s: ComposerUpdateFunc (arg)
62
70
exe s: ComposerRunFunc (" update" )
63
71
endfunction
You can’t perform that action at this time.
0 commit comments