Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inlay hints drop function bodies while typing out missing arguments… #2092

Open
hadronized opened this issue Nov 24, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@hadronized
Copy link

hadronized commented Nov 24, 2024

…and it makes my life completely miserable. Basically, if you have a function such as openDir and you only put the path in (openDir(".", ), then ZLS would set the inlay hints of the return type as the body of the function.

EDIT: this happens when the function returns an error, actually. So basically, if try is not present, nor catch.

This is:

  1. Off setting; I don’t think it’s information that should leak to the return type.
  2. Extremely annoying when working with editor displaying them on the fly (I’m using Kakoune + kakoune-lsp); it shifts the view to the right with extreme padding (see attached screenshot).

screenshot-241124120521

@hadronized hadronized added the enhancement New feature or request label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant