-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use CursorHold for LSP hover messages #1532
Comments
A longer-term feature that would be super cool: support neovim's floating windows (if/when they're merged), to show the hover messages right above the cursor! |
That’s not always desirable as one can use :ALEHover to fix the problem — the workflow I have when working with Merlin/OCaml — I go to the line with an error and query for types under the cursor to get the proper understanding of the problem. |
If you want to see the message, you can type |
Ok, I mistakenly thought this applies to :ALEHover too. It makes sense to me then, sorry for the noise. |
I have a naive version of this at https://github.com/mlwarner/ale/commit/ecbf3a124656687f0950a03a5e6930327418868b but probably can't get to it until this weekend. Still needs
otherwise it meets the first 3 points required |
it seems that this feature has been released 🎉 |
Will this ever be implemented? I have been looking to have similar behavior from |
I have implemented this now at last. I tested it during my day job, and the messages are subtle enough that I turned the new |
ALE now supports an
:ALEHover
command for displaying information at the cursor, but we can take this to the next level with the following changes.ale#cursor
to implement a truncated echo message to avoid interrupting editing.CursorHold
to trigger the truncated echo version of:ALEHover
, using the first line of output.With the series of changes described above, it should be possible to create a version of hover messages where messages display when you move your cursor over things and actually "hover."
The text was updated successfully, but these errors were encountered: