simrat39 / rust-tools.nvim

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

feat: Make inlay_hints priority configurable #361

Open mosauter opened 1 year ago

mosauter commented 1 year ago

I'm using gitsigns with the current_line_blame configuration enabled. This basically shows the last change on the current line as virtual text.

For rust I would like to see the inlay_hints first and the blame information second. By default gitsigns uses a priority of 100 (which I think is also the default in general, but couldn't find it in the docs).

This PR would make it possible to set the priority of the inlay_hints in the configuration of rust-tools.nvim and therefore create your own custom ordering (even if you have 15 more plugins for virtual text).

To my knowledge it doesn't change the default behaviour (which would put gitsigns blame in front)

MunifTanjim commented 1 year ago

I've pulled this in https://github.com/MunifTanjim/rust-tools.nvim/tree/patched