Skip to content

Commit 3b05878

Browse files
committed
Fixed init and require functions
1 parent 350b37f commit 3b05878

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

plugin/vim-composer.vim

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,16 @@ function! s:ComposerInstallFunc(arg)
5959
endif
6060
endfunction
6161

62-
function! s:ComposerInit(arg)
62+
function! s:ComposerInit()
6363
exe s:ComposerRunFunc("init")
64-
if len(g:composer_install_callback) > 0
65-
exe "call ".g:composer_install_callback."()"
66-
endif
6764
endfunction
6865

6966
function! s:ComposerUpdateFunc(arg)
7067
exe s:ComposerRunFunc("update")
7168
endfunction
7269

73-
function! s:ComposerRequireFunc(repo, version)
74-
exe s:ComposerRunFunc("require", repo, version)
70+
function! s:ComposerRequireFunc()
71+
exe s:ComposerRunFunc("require")
7572
endfunction
7673

7774
function! g:ComposerKnowWhereCurrentFileIs()

0 commit comments

Comments
 (0)