autozimu / LanguageClient-neovim

Language Server Protocol (LSP) support for vim and neovim.
MIT License
3.55k stars 272 forks source link

Diagnostics echoed and cut-off in gvim 8.2 #1252

Open zlindenbaum opened 2 years ago

zlindenbaum commented 2 years ago

Describe the bug

I'm unsure if this is a bug, or intended functionality. I can't seem to get diagnostics to render in a popup window (as in coc.nvim, which works in my vim client, if extremely slowly): they're echoed to the bottom of the page, with the majority of their contents cut-off. My vim client has popup functionality, and I use that for rendering documentation. If it's relevant, I'm running NixOS, and using the vimHugeX package for gvim.

Environment

Plug 'autozimu/LanguageClient-neovim', { \ 'branch': 'next', \ 'do': 'bash install.sh', \ }

call plug#end()

augroup filetype_rust autocmd! autocmd BufReadPost *.rs setlocal filetype=rust augroup END

" Always draw sign column. Prevent buffer moving when adding/deleting sign. set signcolumn=yes

let g:LanguageClient_loggingLevel = 'INFO' let g:LanguageClient_virtualTextPrefix = '' let g:LanguageClient_loggingFile = expand('~/.local/share/nvim/LanguageClient.log') let g:LanguageClient_serverStderr = expand('~/.local/share/nvim/LanguageServer.log')

set hidden

set rtp+=~/.vim/plugged/LanguageClient-neovim let g:LanguageClient_serverCommands = { 'haskell': ['haskell-language-server-wrapper', '--lsp'] } let g:LanguageClient_usePopupHover = 1 let g:LanguageClient_useVirtualText = "No" let g:LanguageClient_hoverPreview = "always"

set completefunc=LanguageClient#complete " set omnifunc=LanguageClient#complete

map h :call LanguageClient_contextMenu() autocmd FileType haskell nnoremap :call LanguageClient#textDocument_hover()


- Language server link and version:
[Haskell Language Server 1.6.1.1](https://github.com/haskell/haskell-language-server)

[min-vimrc.vim]: https://github.com/autozimu/LanguageClient-neovim/blob/next/min-vimrc.vim