Skip to content

:LspHover in Vim9 with lsp and python-lsp-server renders ugly formatting #562

@LuisBL

Description

@LuisBL

Below rendering of :LspHover Vs the one provide by ipython

enter image description here

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)
  $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions