Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LuisBL opened this issue May 26, 2024 · 0 comments
Open

Comments

@LuisBL
Copy link

LuisBL commented May 26, 2024

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)
  $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant