mattn / vim-lsp-settings

Auto configurations for Language Server for vim-lsp
MIT License
1.3k stars 232 forks source link

:LspInstallServer not an editor command #76

Closed tmpm697 closed 4 years ago

tmpm697 commented 4 years ago

I have all required plugins installed, but when issue LspInstallServer I got the error not an editor command.

Archlinux / vim-git latest (via aur), install plugin using native vim8 method

mattn commented 4 years ago

What the filetype did you open?

tmpm697 commented 4 years ago

What the filetype did you open?

With empty buffer.

With rust file (.rs) I got this error:

Error detected while processing function <SNR>54_vimlsp_install_server:
line    3:
E684: list index out of range: 0
mattn commented 4 years ago

Ah, the error is a bug. And fixed in last change. However, your buffer does not have filetype with the .rs file.

mattn commented 4 years ago

BTW, LspInstallServer command can not be used for empty buffer since vim-lsp-settings does not know which server should be installed.

tmpm697 commented 4 years ago

nice, thanks. but I search through $HOME and I seem can't find /.server folder that contain server, I installed golang server via :LspInstallServer

mattn commented 4 years ago

gopls should be located at ~/.vim/plugged/vim-lsp-settings/servers/gopls/gopls if you use vim-plug.

tmpm697 commented 4 years ago

nice, thanks. I use native vim8 way to manage plugins so it's in ~/.vim/pack/default/start/vim-lsp-settings/servers/gopls/gopls