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