chrisgrieser/nvim-lsp-endhints

Feature Request: allow toggling between the default behaviour and this plugin's behaviour

Closed this issue · 6 comments

vxpm commented

Checklist

  • I have read the README.
  • The feature would be useful to more users than just me.

Feature Requested

while the endhints greatly improve the process of writing code (since they get out of the way), sometimes reading is easier when the inlay hints are in their original position. it would be nice if there was a way to toggle between the original behaviour and this plugin's behaviour.

i've tried my hand at a sketch of the solution here: https://github.com/vxpm/nvim-lsp-endhints. it probably has uncovered edge cases, but it works as a proof of concept.

Relevant Screenshot

No response

Feel free to make a PR?

vxpm commented

you mean as is? if that's what you want, sure. but my lua/neovim api skills are very basic and i'm not sure what i've written is bug-free or even the right way to go about it - that's why i didn't open a pr.

The reason is simply that a PR results in a diff of your fork with the repo so I can have a look. Just by linking your fork I have no idea what you've done.

Can still close / suggest fixes if it's broken

vxpm commented

the fork is a single commit ahead of this repo, but that's my fault - i should have linked the commit. i'll open a pr then.

Oh my bad, haven't checked out the fork, that is just a commit.

Nonetheless, a PR is still helpful for discussion, since you can comment on specific sections of code more easily.

Let's continue at the PR

closed by #7