Help with native inlay hints

So I've just started using the native LSP inlay hints. I was wondering, does anybody know how to move the inlay hints to the end of the line, instead of in the middle of the line? Matter of preference I suppose, but I find it clutters the line too much.

13 points · 3 comments · view on lemmy.world

3 Comments

cd_slash_rmrf@programming.dev · 6 pts · 2y (1 reply)

sadly no; position of hint is determined by the LSP server.

you could use this plugin (now archived) which was the way many people used hints pre-0.10:

https://github.com/lvimuser/lsp-inlayhints.nvim

_hovi_@lemmy.world · 2 pts · 2y

I was afraid that was the case yeah. I think I was using that before yeah, might just go back

_hovi_@lemmy.world · 2 pts · 2y

Just an update in case anyone else comes across this post - I found this plugin which allows me to put the inlay hints at the end of the line and it works great. Make sure to modify the display_callback to change how it looks.