dense-analysis / dense-analysis/ale
Position of floating preview for uncluttered editing
- Dominant language
- Vim Script
- Stars
- 14k
- Forks
- 1.5k
- Avg merge
- 17h 49m
- Merged PRs (30d)
- 1
Description
I enabled floating preview in ALE and it's very cool and useful, but quite often it goes in the way of what I'm writing.
For example, sometimes a popup comes up with a suggestion on the line below, I break the line and I'll find my cursor right under the window, which won't move and will prevent me to see completion or what I'm typing.
I'm unsure if this is just misconfiguration on my side, but I looked a bit into it and apparently there are not many options to control its behavior.
So, there are a few things that come into my mind:
1. assuming it's not a misconfig, maybe the window could be placed to a fixed offset from the cursor position (with a user-defined offset, possibly having the window floating over the current line);
2. as alternative, it might be nice to shift the floating preview to the window border, instead of having it near the cursor. For example, it could be pushed on the right margin of the window, so it's unlikely to be in the way;
3. (possibly the most complex) a finer control that ensures floating windows won't overlap with the cursor and with code completion windows.
Does it make sense? Sorry if I'm suggesting something that has been implemented already - pointers on relevant configs are appreciated in the latter case :)
Contributor guide
Assessment
This issue has not been assessed yet.