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

Optimize function signature display with line break in hover preview. #216

Open
aprosail opened this issue Jul 8, 2024 · 0 comments
Open
Labels
enhancement lsp Issue with language server integration

Comments

@aprosail
Copy link

aprosail commented Jul 8, 2024

Screenshot

Optimize the function signature hover preview please, don't just display the raw code. Maybe we can process the whole function signature hover preview string into a single line, remove unnecessary line break and trailing commas according to zig syntax. Or, at least, format the indent to display it normally.

Most function signatures in zig source code are in a single line, but some of them are not. Once coding with longer function signatures which cannot be place into a single line, the hover preview will be like this, which is not pretty.

@Vexu Vexu added lsp Issue with language server integration enhancement labels Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement lsp Issue with language server integration
Projects
None yet
Development

No branches or pull requests

2 participants