-
Notifications
You must be signed in to change notification settings - Fork 18
Don't display parameter name hints #9
base: master
Are you sure you want to change the base?
Conversation
Is it better choice that control on or off by a variable? |
I'm not sure, other options like |
Let's make an ignored kinds option, which is a table with the keys being kinds that you don't want displayed. It can default to the parameter name hint like you have. This way, people can easily filter out any kinds they don't find helpful. Does that make sense? |
Sounds great! |
@tjdevries @glepnir Given the current implementation of only showing highlights at the end of the line, I think it makes sense that we only show This image was taken from VSCode with the rust-analyzer plugin. The gray text is all virtual text. In this case, Given that these all have different positions and meanings I don't think it makes sense to allow for all of them to appear at the end of the line. I can put up a PR real quick that only allows |
Actually, it looks like we can't draw virtual text interspersed in a line. It only appears at the end of a line. 😬 |
Is this resolved by #19? |
I don't think it makes much sense to display parameter name hints at the end of the line because
If you don't agree with my point of view I'd love an extra parameter for
inlay_hints
to disable parameter name hints. I fear I'm not versed enough in Lua and nvim scripting to implement this myself.