yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
447 stars 43 forks source link

:LspHover provide hugly formating #523

Open LuisBL opened 1 month ago

LuisBL commented 1 month ago

Below rendering of :LspHover Vs the one provide by ipython

image

I don't know if it's my configuration or a lsp problem or python-lsp-server side ?

my version of python-lsp-server

  $ pyenv virtualenv system lsp
  $ pyenv activate lsp
  (lsp) $ pip install python-lsp-server[all] -U
  (lsp) $ pip list | grep -E 'lsp'
  python-lsp-jsonrpc    1.1.2
  python-lsp-server     1.11.0
  (lsp) $

vim 9.0:

  $ vim --version | head -1
  VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 10 2022 08:40:37)
  $

my .vimrc:

  $ tail -14 ~/.vimrc
  call plug#begin('~/.vim/plugged')
    Plug 'yegappan/lsp'
  call plug#end()

  let lspOpts = #{autoHighlightDiags: v:true}
  autocmd User LspSetup call LspOptionsSet(lspOpts)

  let lspServers = [#{ name: 'pylsp',
                   \   filetype: 'python',
                   \   path: 'expand(~/.pyenv/versions/lsp/bin/pylsp'),
                   \   args: ['--verbose', '--log-file', '/tmp/out_lsp.log'],
                   \ }]
  autocmd User LspSetup call LspAddServer(lspServers)
  $
LuisBL commented 5 days ago

any news on this ?

mariobelmar commented 5 days ago

i have the exact same problem.

Konfekt commented 2 days ago

Isn't this similar to https://github.com/yegappan/lsp/issues/296 ?