Add wm specific Vim setup
This commit is contained in:
parent
6e9382daf9
commit
bc10779a9a
16
home/programs/neovim/configuration/ftdetect/folder_wm.vim
Normal file
16
home/programs/neovim/configuration/ftdetect/folder_wm.vim
Normal 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
|
Loading…
Reference in a new issue