Skip to content

Inconsistent newline behaviour between editors #3248

@NathanSnail

Description

@NathanSnail

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Linux

What is the issue affecting?

Hover

Expected Behaviour

<br> or an actual newline should render as a newline in hover in both neovim and vscode.

Actual Behaviour

In NeoVim

Image Image

In VSCode

Image Image

Reproduction steps

  1. Create an annotation that uses <br> or a newline to have multiline documentation
  2. Hover it in both NeoVim and VSCode

Additional Notes

According to the documentation both should work, 2 spaces appears to work in both, \ works in both but in NeoVim renders an additional backslash character.

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions