Skip to content

Commit 55299f4

Browse files
committed
Allow configuration of artisan executable
let g:laravel_artisan = '...'
1 parent 299813e commit 55299f4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

autoload/laravel.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,13 @@ function! s:app_makeprg(...) abort dict
436436
let args = []
437437
endif
438438

439-
return join(['php', 'artisan'] + args)
439+
let makeprg = get(g:, 'laravel_artisan', ['php', 'artisan'])
440+
441+
if type(makeprg) != type([])
442+
let makeprg = [makeprg]
443+
endif
444+
445+
return join(makeprg + args)
440446
endfunction
441447

442448
""

0 commit comments

Comments
 (0)