Skip to content

Commit

Permalink
Fixed init and require functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sensorario committed Sep 2, 2015
1 parent 350b37f commit 3b05878
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions plugin/vim-composer.vim
Expand Up @@ -59,19 +59,16 @@ function! s:ComposerInstallFunc(arg)
endif
endfunction

function! s:ComposerInit(arg)
function! s:ComposerInit()
exe s:ComposerRunFunc("init")
if len(g:composer_install_callback) > 0
exe "call ".g:composer_install_callback."()"
endif
endfunction

function! s:ComposerUpdateFunc(arg)
exe s:ComposerRunFunc("update")
endfunction

function! s:ComposerRequireFunc(repo, version)
exe s:ComposerRunFunc("require", repo, version)
function! s:ComposerRequireFunc()
exe s:ComposerRunFunc("require")
endfunction

function! g:ComposerKnowWhereCurrentFileIs()
Expand Down

0 comments on commit 3b05878

Please sign in to comment.