Replies: 1 comment
-
This will probably work for you. Basically, don't put the " copy-pasted from https://github.com/prabirshrestha/vim-lsp#registering-servers
augroup lsp_install
au!
" call s:on_lsp_buffer_enabled only for languages that has the server registered.
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
" ref: https://github.com/prabirshrestha/vim-lsp/discussions/1560
"let g:lsp_diagnostics_float_cursor = 1
let g:lsp_diagnostics_echo_cursor = 1
let g:lsp_diagnostics_virtual_text_enabled = 0
augroup END Uncomment References |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to work this out by reading the documentation/issues/discussions, but I need to finally cry uncle. Ultimately, I want to get the diagnostics, but I don't want them to cause the actual code to jump up and down the way
g:lsp_diagnostics_virtual_text_enabled
does. It really sounds likeg:lsp_diagnostics_echo_cursor
does what I want. However, I can't get it to do anything. (LspDocumentDiagnostics
is close to what I want, except I don't want to sift through all diagnostics. I only want the ones for the current line.)I tried creating a minimal
.vimrc
, removing all other plugins, and opening the minimal test file shown below. I would expect that if I leave my cursor onunused1
orunused2
and wait a half second, the statusline would then display the warning about the variable being unused. However, it just continues to show the filename of the buffer.Does anyone have an idea of what I'm doing wrong? It seems like I must be missing something "obvious".
.vimrc:
src/main.rs
screenshot (cursor is on
unused1
):Vim version:
Beta Was this translation helpful? Give feedback.
All reactions