Skip to content

Commit 78c2fa0

Browse files
committed
Support composer.bat on Windows
Fixes #11
1 parent 815ac52 commit 78c2fa0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

autoload/composer.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ endfunction
232232
function! s:project_makeprg() dict abort
233233
if self.has_file('composer.phar')
234234
return 'php composer.phar'
235+
elseif executable('composer.bat')
236+
return 'composer.bat'
235237
else
236238
return 'composer'
237239
endif

t/project.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe 'composer#project()'
4545

4646
context 's:project_makeprg()'
4747
it 'returns the composer executable name'
48-
Expect b:project.makeprg() ==# 'composer'
48+
Expect b:project.makeprg() =~# '^composer'
4949
end
5050
end
5151
end

0 commit comments

Comments
 (0)