Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:Cargo command does not respect :vertical #474

Open
agraven opened this issue Apr 11, 2022 · 1 comment
Open

:Cargo command does not respect :vertical #474

agraven opened this issue Apr 11, 2022 · 1 comment

Comments

@agraven
Copy link

agraven commented Apr 11, 2022

  • rust.vim version: latest master at time of writing, 4aa69b8

Steps to reproduce:

  • Run a Cargo command prefixed by :vertical, e.g. :vertical Cargo check

Expected vs. actual behavior:

  • A vertical split should be made when Cargo is invoked with :vertical, but a horizontal split is made instead.
@godinenbicicleta
Copy link

not a fix, but this is one way to do it:

:execute 'vsplit' | terminal 'cargo' 'check'

And if you like that behavior, you can add this line to your init.vim (neovim)

let g:cargo_shell_command_runner = 'vsplit | terminal'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants