Skip to content

Comments

disable LSP diagnostics in virtual text#231

Open
kit837 wants to merge 1 commit intobraintreeps:masterfrom
kit837:patch-1
Open

disable LSP diagnostics in virtual text#231
kit837 wants to merge 1 commit intobraintreeps:masterfrom
kit837:patch-1

Conversation

@kit837
Copy link

@kit837 kit837 commented Jun 10, 2025

What

Disable LSP diagnostics in virtual text.

Why

Vim 9.0 added virtual text

By default it seems LSP diagnostics are using it, but unfortunately the virtual text is displayed in line with the buffer (causing the vertical text to move) instead of a popup window or something else.

When used with e.g. vim-go, this causes a pretty constant flux of changes in the buffer space while doing simple edits which is very annoying and difficult to use (imo).

Setting lsp_diagnostics_virtual_text_enabled = 0 restores the behavior of vim 8.2 where the diagnostics information is displayed in the vim command line area.

Checklist

- [] Send RFC email to Braintree developers if change may be impactful. Please include a link to this PR so that discussion about the pros and cons of the change remains linked to the proposed changes. Recent examples include: addition of linter and completer, no longer removing end-of-line whitespace on save, changing to fzf for file lookup.

[Vim 9.0 added virtual text](vim/vim#7553)

By default it seems LSP diagnostics are using it, but unfortunately the virtual text is displayed in line with the buffer (causing the vertical text to move) instead of a popup window or something else. 

When used with e.g. vim-go this causes a pretty constant flux of changes in the buffer space while doing simple edits which is very annoying and difficult to use (imo).

Seting `lsp_diagnostics_virtual_text_enabled = 0` restores the behavior of vim 8.2 where the diagnostics information is displayed in the vim `command line` area.
cosgroveb pushed a commit that referenced this pull request Feb 20, 2026
This makes it stop in the middle of the screen when paging down further
would just result in only the final line of the file being down. The BT
vim experience just stops paging down when you hit the final line, so it
sometimes shows more or less of half a page, so this isn't 1 to 1... but
it's close enough, and more importantly, it's useful.

Slack convo:
https://paypal.slack.com/archives/C08JJMPR4HX/p1759266628561989
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.

2 participants