Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Handle multi-part inlay hint labels #308

Closed
wants to merge 1 commit into from
Closed

Handle multi-part inlay hint labels #308

wants to merge 1 commit into from

Conversation

mattfbacon
Copy link

Currently the plugin shows an error message because it expects and assumes that o_hint.label is a string, but with these new multi-part inlay hints, they are an array of tables where the tables have a value attribute that contains the string of that part. I'm not sure about using the actual information that is provided by these multi-part hints (references to other items such as types, called "location links" I believe), but this patch at least retains the old behavior of just showing text.

@kesleta kesleta mentioned this pull request Jan 2, 2023
atidyshirt added a commit to atidyshirt/dotfiles that referenced this pull request Jan 4, 2023
…ints

Maintaining a separate fork to prevent loss while breaking changes are
in place on `rust-tools.nvim`, see the following issue for more details
about the status of this issue.

- simrat39/rust-tools.nvim#308
@NickHu
Copy link

NickHu commented Jan 5, 2023

Duplicate of #307

@mattfbacon
Copy link
Author

Nice, that PR looks better.

@mattfbacon mattfbacon closed this Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants