From 3776406ba76dbd1264d01580efba8cd010e9bd0e Mon Sep 17 00:00:00 2001 From: kit837 <66801824+kit837@users.noreply.github.com> Date: Tue, 10 Jun 2025 12:01:42 -0700 Subject: [PATCH] disable LSP diagnostics in virtual text [Vim 9.0 added virtual text](https://github.com/vim/vim/issues/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. --- vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrc b/vimrc index 553de5b..a56ba98 100644 --- a/vimrc +++ b/vimrc @@ -246,6 +246,7 @@ elseif filereadable('settings.gradle') || executable('./gradlew') endif let g:lsp_diagnostics_echo_cursor = 1 +let g:lsp_diagnostics_virtual_text_enabled = 0 let g:asyncomplete_auto_popup = 0 function! s:setup_vim_lsp() abort