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 @@ -16,6 +16,11 @@ This command exec the installation flow of composer's install. This process requ
1616```
1717This command exec ` composer install `
1818
19+ ``` vim
20+ :ComposerJSON
21+ ```
22+ This command open ` composer.json `
23+
1924## Install
2025``` vim
2126Bundle 'vim-php/vim-composer'
Original file line number Diff line number Diff line change 2424command ! -narg =* ComposerRun call s: ComposerRunFunc (<q-args> )
2525command ! -narg =* ComposerInstall call s: ComposerRunFunc (" install " .<q-args> )
2626command ! ComposerGet call s: ComposerGetFunc ()
27+ command ! ComposerJSON call s: OpenComposerJSON ()
2728
2829function ! s: ComposerRunFunc (arg)
2930 let s: arg = a: arg
@@ -33,3 +34,11 @@ endfunction
3334function ! s: ComposerGetFunc ()
3435 exe " ! curl -Ss https://getcomposer.org/installer | php"
3536endfunction
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