Skip to content

How to use with Projectionist #113

@willian

Description

@willian

Hi,
I'm trying to use Projectionist with vim-rspec, I already have it working with Dispatch but not with Projectionist.

I have this configuration on my .vimrc:

let g:rspec_command = 'w | Dispatch rspec {spec}'

nnoremap <Leader>t :call RunCurrentSpecFile()<CR>
nnoremap <Leader>s :call RunNearestSpec()<CR>
nnoremap <Leader>l :call RunLastSpec()<CR>
map <leader>t :call RunCurrentSpecFile()<cr>
map <leader>s :call RunNearestSpec()<cr>
map <leader>l :call RunLastSpec()<cr>
map <leader>a :call RunAllSpecs()<cr>

And I have this .projections.json file:

{
  "spec/*_spec.rb": {
    "dispatch": "docker-compose run artisan bundle exec rspec {file}"
  }
}

For some reason, when why run <leader>s it runs w | Dispatch rspec {spec} and not docker-compose run artisan bundle exec rspec {file}.

I'm wondering it I should ignore vim-rspec or use another command to execute the Projectionist configuration.

Does anybody have this same situation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions