File tree 2 files changed +14
-0
lines changed 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ This command exec the installation flow of composer's install. This process requ
16
16
```
17
17
This command exec ` composer install `
18
18
19
+ ``` vim
20
+ :ComposerJSON
21
+ ```
22
+ This command open ` composer.json `
23
+
19
24
## Install
20
25
``` vim
21
26
Bundle 'vim-php/vim-composer'
Original file line number Diff line number Diff line change 24
24
command ! -narg =* ComposerRun call s: ComposerRunFunc (<q-args> )
25
25
command ! -narg =* ComposerInstall call s: ComposerRunFunc (" install " .<q-args> )
26
26
command ! ComposerGet call s: ComposerGetFunc ()
27
+ command ! ComposerJSON call s: OpenComposerJSON ()
27
28
28
29
function ! s: ComposerRunFunc (arg)
29
30
let s: arg = a: arg
@@ -33,3 +34,11 @@ endfunction
33
34
function ! s: ComposerGetFunc ()
34
35
exe " ! curl -Ss https://getcomposer.org/installer | php"
35
36
endfunction
37
+
38
+ function ! s: OpenComposerJSON ()
39
+ if filereadable (" ./composer.json" )
40
+ exe " vsplit ./composer.json"
41
+ else
42
+ echo " Composer json doesn't exist"
43
+ endif
44
+ endfunction
You can’t perform that action at this time.
0 commit comments