Skip to content

Normalize hover markdown line breaks#1253

Open
RISCyCat wants to merge 2 commits into
redhat-developer:mainfrom
RISCyCat:fix-spacing-875
Open

Normalize hover markdown line breaks#1253
RISCyCat wants to merge 2 commits into
redhat-developer:mainfrom
RISCyCat:fix-spacing-875

Conversation

@RISCyCat
Copy link
Copy Markdown

What does this PR do?

This PR normalize trailing markdown line breaks in YAML hover output to prevent excessive spacing in Neovim LSP hover rendering.

What issue does this PR fix or reference?

Fixes #875

Is it tested? How?

Tested locally by reproducing the hover formatting issue and verifying cleaner markdown rendering in Neovim

@RISCyCat RISCyCat requested a review from datho7561 as a code owner May 19, 2026 06:10
@RISCyCat
Copy link
Copy Markdown
Author

I have opened this PR as a proposed fix for #875

The change normalizes trailing markdown line breaks in hover output to reduce excessive spacing in Neovim LSP rendering.

I am open to adjust the implementation if maintainers prefer a different formatting approach.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Weird spacing when using lsp.buf.hover in nvim

1 participant