kabouzeid / nvim-lspinstall

Provides the missing :LspInstall for nvim-lspconfig
MIT License
526 stars 67 forks source link

server installed but not able to attach? #73

Open winkee01 opened 3 years ago

winkee01 commented 3 years ago

I have run :LspInstall python to correctly (no erros) installed language server for python, but when I open a .py file in my project, and execute :LspInfo, it gets this message:

Configured servers:
Neovim logs at: /home/winkee/.cache/nvim/lsp.log

0 client(s) attached to this buffer:

0 active client(s):

Clients that match the filetype python:

OS: Ubuntu 20.04 Python: python 3.8.6 Neovim: v0.5.0-dev

kabouzeid commented 3 years ago

Have you followed the install instructions in the README? Could you share your config?

winkee01 commented 3 years ago

Have you followed the install instructions in the README? Could you share your config?

I copied the example config from https://github.com/kabouzeid/nvim-lspinstall/wiki

JryChn commented 3 years ago

Me 2, I can not start the server with my java file, and when I start the LSP server manually, It says: autostart+java+failed+matching+root+directory+not+detected

EDIT: I create a java file in my .git project , it can work after save a template java file and open it again ........... I think it can not use if I just create a simple hello world java file without a root directory?

kabouzeid commented 3 years ago

Per default you always need a root directory for lspconfig to attach automatically.

Read the lspconfig docs if you want to learn more about this behavior :)