Replies: 4 comments 10 replies
-
We need a PR for this. A link to the protocol's standard would be a good start, and if it works like I guess it does (like diagnostics) I suppose it should be done via a special type of Flymake diagnostic with certain display properties. |
Beta Was this translation helpful? Give feedback.
-
It looks like inlay hints were added in LSP 3.17, which was released a couple weeks back; they are described in Inlay Hint Request et seq. |
Beta Was this translation helpful? Give feedback.
-
Hello there! I've been working on adding support for inlay hints in eglot, I have a WIP up on my repo here: https://github.com/ShadowMitia/eglot I've just found this discussion, I'll try and apply some of the ideas here, but please let me know what you think, or what I should change. I've based this on the code lens PR, I figured the implementation would be close (I actually thought inlay hints and code lens were the same feature at first). The implementation is still incomplete, there are bits of the standard I haven't got round to yet. Unless you want me to open PR now, I'll wait until the code is a bit more solidified. If you want to check my code, just run M-x eglot-inlay-hint. To update rerun the command again to see the hints update. |
Beta Was this translation helpful? Give feedback.
-
I have submitted an improved version of @ShadowMitia 's patch here: https://mail.gnu.org/archive/html/bug-gnu-emacs/2023-02/msg00760.html |
Beta Was this translation helpful? Give feedback.
-
https://rust-analyzer.github.io/manual.html#inlay-hints
And Lsp-mode also has this function
https://emacs-lsp.github.io/lsp-mode/page/lsp-rust-analyzer/#inlay-hints
Beta Was this translation helpful? Give feedback.
All reactions