anott03 / nvim-lspinstall

86 stars 6 forks source link

LspInstall docker failed #4

Open yriveiro opened 3 years ago

yriveiro commented 3 years ago

Running :LspInstall docker fails in my machine because is requiring sudo permissions.

OS: Ubuntu 20.10

Screenshot 2021-01-30 at 13 11 29

I would assume that all nodejs related language servers will fail as well.

anott03 commented 3 years ago

Yes. If one nodejs language server requires sudo, they all will. I am working on switching to the method that the lspconfig extension used before deprecating lspinstall, which will install packages to a local directory (most likely ~/.local/share/nvim/lspinstall/node_modules or something similar). In the meantime, you could copy the command that LspInstall is attempting to run, and replace bash at the end with sudo bash. If you were to do this, the command for Docker would turn into

curl https://raw.githubusercontent.com/anott03/nvim-lspinstall-scripts/master/Linux/docker.sh | sudo bash
anott03 commented 3 years ago

@yriveiro I believe as of #8 this issue should be resolved.