zls icon indicating copy to clipboard operation
zls copied to clipboard

Inlay hints drop function bodies while typing out missing arguments…

Open hadronized opened this issue 1 year ago • 0 comments

…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 avatar Nov 24 '24 11:11 hadronized