fannheyward / coc-rust-analyzer

rust-analyzer extension for coc.nvim
MIT License
1.12k stars 39 forks source link

codelens run, how to make the split configurable? #1235

Closed ssh352 closed 5 months ago

ssh352 commented 5 months ago

Screenshot 2024-03-05 at 11 15 15 PM

I press shortcut keys to Run:

Screenshot 2024-03-05 at 11 15 45 PM

However I couldn't ctrl-w = to make the split equal height, could you advise why?

also Is it possible to make the split a vertical instead of horizontal split?

Is it possible to set the default height or width of the split? Thanks!

fannheyward commented 5 months ago

No configurations yet, the terminal window can only horizontal split. https://github.com/fannheyward/coc-rust-analyzer/issues/745

You can use something like autocmd User CocTerminalOpen :resize 20 to resize the terminal when it opens.

ssh352 commented 5 months ago

You can use something like autocmd User CocTerminalOpen :resize 20 to resize the terminal when it opens.

It works, thanks, do you know why ctrl-w = doesn't work for the coc opened split? what's special about the coc opened split?

fannheyward commented 5 months ago

why ctrl-w = doesn't work

Maybe it's a terminal buffer? not a normal buffer? have no idea about this.

ssh352 commented 5 months ago

why ctrl-w = doesn't work

Maybe it's a terminal buffer? not a normal buffer? have no idea about this.

If you start vim, then :8split|term, then ctrl-w = works. So it is not because of the terminal buffer. Thanks anyways!