Ale: Open preview window for ALEHover in vertical split

Created on 25 Feb 2019  Â·  4Comments  Â·  Source: dense-analysis/ale

Please point me to the docs if I missed it, but I can't see support for opening hover information in a vertical split. Normally, if a vertical split option isn't supported, I'd add a mapping to move it there, something like :ALEHover<CR><C-w><C-j>:windo wincmd L<CR>. Since ALEHover normally has a brief, non-blocking delay, however, the motion after invoking ALEHover either does nothing (if I have no split open) or moves what ever split is already there to the right. Additionally, such a mapping doesn't open the hover info that pops up during autocompletion. It also seems to be unrelated to my settings, as I already have set splitright in my vimrc.

Is an option to have hover information open in a vertical split easily possible?

enhancement

Most helpful comment

Sometimes the information returned from LSP contains too much info. In VsCode you are allowed to scroll inside a “balloon” but that’s not possible with echoed message.

I’d like to have something like ALEHoverSplit which would do a vertical split and info there. It can also apply syntax highlighting.

All 4 comments

The hover information is displayed in balloons, the echo line, or in a preview window. I don't think it's worth opening it in a buffer that stays open.

Sometimes the information returned from LSP contains too much info. In VsCode you are allowed to scroll inside a “balloon” but that’s not possible with echoed message.

I’d like to have something like ALEHoverSplit which would do a vertical split and info there. It can also apply syntax highlighting.

Okay, that makes sense. I'll reopen this.

I'd prefer the command to be :ALEHover -vsplit. At some point I'll deprecate commands like :ALEGoToDefinitionInVSplit so they are :ALEGoToDefinition -vsplit instead, etc.

Is it not possible to scroll in the default Ale preview window?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janhellmich picture janhellmich  Â·  3Comments

trevordmiller picture trevordmiller  Â·  3Comments

ianchanning picture ianchanning  Â·  3Comments

trevordmiller picture trevordmiller  Â·  4Comments

glepnir picture glepnir  Â·  3Comments