Add wm specific Vim setup

This commit is contained in:
Daniel Siepmann 2023-05-03 14:22:26 +02:00
parent 6e9382daf9
commit bc10779a9a
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -0,0 +1,16 @@
augroup wm_soziopolisFolder
autocmd!
autocmd BufEnter **/soziopolis/**/tests/Acceptance/** execute "call WmSoziopolisSetupAcceptance()"
augroup END
function! WmSoziopolisSetupAcceptance()
let l:env = 'localhost'
" Allows switching via `:let g:codeception_env = 'prod'`
if exists('g:codeception_env')
let l:env = g:codeception_env
endif
let g:test#php#codeception#options = {
\ 'nearest': '--env ' . l:env . ' --debug',
\ 'file': '--env ' . l:env . ' --debug',
\}
endfunction