lsp-mode
lsp-mode copied to clipboard
Only show the first line of each code lens
Is there a way to only display the first line of a code lens? I find that having multiline lenses makes it much harder to navigate the file. Here's a screenshot showing particularly egregious example from Haskell:
I'd love to be able to see something more like
myLayoutHool :: LayoutConfig ...
instead, so that I can tell at a glance that clicking the lens will add multiple lines, without having to scroll past all the lines if I choose not to click it.
Can anyone crosscheck vscode's behavior?
Looks exaggerated that lens from server BTW, really curious to see how other editors like vscode handles that
Just changed clojure-lsp to return a huge string on lens, this is how it looks on emacs
vscode
So it seems vscode crops \n
and have a length limit
@ericdallo is there a way to see the whole content? I guess hovering? But we should do what vscode does here.
(and in general sending these long lenses and then UI cropping them makes no sense because the user can hover the identifier either way)
No @yyoncho, hover does nothing
No @yyoncho, hover does nothing
so it is useless...