vim-config icon indicating copy to clipboard operation
vim-config copied to clipboard

LSP stopped working

Open neowutran opened this issue 4 years ago • 2 comments

Recently, LSP stopped working.

I believe it is an issue between how the "nvim-lspconfig" plugin and the "nvim-lsp-installer" plugin config work together. "nvim-lsp-installer" work: It is able to install LSP server "nvim-lspconfig" work: It is able make all the LSP stuff available.

Example of the issue, with a full updated "rafi/vim-config":

  • Open a rust file "main.rs".
  • Install the corresponding LSP server (:LspInstall)
  • No LSP server is attached to the source file. Restarting neovim won't change that.

If I try to manually attach it (:lua require'lspconfig'.rust_analyzer.setup{}, error message saying that the required binary (rust-analyzer) cannot be found.

If I try to manually attach it and specify the exact binary path of the LSP server installed by "nvim-lsp-installer", then it work (:lua require'lspconfig'.rust_analyzer.setup{cmd={"/home/ME/.local/share/nvim/lsp_servers/rust/rust-analyzer"}})

neowutran avatar Dec 23 '21 09:12 neowutran

You can run :LspInstallInfo to get a nice UI with all LSP servers available, and installed. Try uninstalling and reinstalling, and look in logs at ~/.cache/nvim, specially lsp.log.

rafi avatar Dec 30 '21 12:12 rafi

the same to me. The 'Congifured server list' got be empty.


It works now. Some plugins update failed.

TMTBO avatar May 06 '22 09:05 TMTBO

Pushed a whole new rewrite of vim-config, 100% lua and lazy.nvim as package-manager.

rafi avatar Apr 07 '23 16:04 rafi