simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

Left alignment for inlay hints probably not working #325

Closed rootex- closed 1 year ago

rootex- commented 1 year ago

Good day, First of all, thanks for all the great stuff you've done 🙏

I've encountered a problem during configuration of left alignment for inlay hints. I might have misunderstood the configuration, although, please correct me if I am doing something wrong or it works another way.

After overriding the default behavior of inlay hints by setting:

and restarting the rust-tools I haven't noticed any changes at all. The inlay hint text was still there, only a single space to the right after the code.

All I wanted was a longer distance between the code and the hint so that the code could be more visually separated from the hint and easier to read.

Right padding for inlay hints worked like a charm though, as expected with padding from the right side of the screen.