Skip to content

Have a way to setup code lenses of type signature above my functions? #446

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

Closed
v3ronez opened this issue Feb 28, 2025 · 4 comments
Closed

Comments

@v3ronez
Copy link

v3ronez commented Feb 28, 2025

so, I created a code to setup this behavior but this code generate conflict with my diagnostics and another stuff. By default, the haskell-server-language have a mode to put my code lenses above my functions and not inline like the example below?

Image
@mrcjkb
Copy link
Owner

mrcjkb commented Feb 28, 2025

Code lenses aren't inline. You'd want inlay hints for those. Hls relies heavily on code lenses for things that inlay hints would be better for. The reason is they were implemented before inlay hints were part of the LSP.

See also: haskell/haskell-language-server#2938

@mrcjkb mrcjkb closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2025
@v3ronez
Copy link
Author

v3ronez commented Feb 28, 2025

no, is not inlay hints, actually is the ghcide-type-lenses. Can I move him from default position 'inline' to above of my functions?
Image

@mrcjkb
Copy link
Owner

mrcjkb commented Feb 28, 2025

Yes, I know it's code lenses. But I misunderstood your initial question and thought you wanted them inline, like inlay hints.

No, Neovim doesn't have an API to change the way code lenses are displayed, afaik.

@v3ronez
Copy link
Author

v3ronez commented Feb 28, 2025

ohh, ok. thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants