0

I've been trying to set up lsp for days now and I just can't understand why it isn't working. I have neovim version 0.9.1 so I should be good with the compatibility. The full error message is attached to the question as an image.

screenshot of lspconfig error message

EXTRA INFO NVIM v0.9.1 Build type: Release LuaJIT 2.1.0-beta3

I tried to install lspconfig

Andromeda
  • 3
  • 3

2 Answers2

0

This can be caused by a mismatch between the neovim and neovim-runtime.

To find out which versions you have installed (for Ubuntu), run apt list --installed | grep "neovim".

Response where the versions are the same:

neovim-runtime/focal,now 0.10.0~ubuntu1+git202306192018-72a6643b1-9b397864c-ed59f0191~ubuntu20.04.1 all [installed,automatic]
neovim/focal,now 0.10.0~ubuntu1+git202306192018-72a6643b1-9b397864c-ed59f0191~ubuntu20.04.1 amd64 [installed]

If the versions are not the same you need to remove Neovim and reinstall it.

duckoak
  • 40
  • 5
0

The problem can be the environment variables, like in my case $VIM and $VIMRUNTIME.

  moonflower  ~  nvim -v
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/__w/neovim/neovim/build/nvim.AppDir/usr/share/nvim"

Run :checkhealth for more info
iaskakho
  • 1
  • 2
  • 1
    This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/34807927) – Koedlt Aug 11 '23 at 20:37