LspInstall not available

Hello all!

Following the documentation. I do not get LspInstall in the second step. At the bottom is a minimum viable (I think) init.vim config.

I managed to get it to work when I installed pyls (python) in my virtual env defined here in my config
let g:python3_host_prog = $HOME."/miniconda3/envs/neovim/bin/python".

I’m just not sure if LspInstall is gone or if I have problem with my install

Follow these steps to get LSP features:

  1. Install the nvim-lspconfig plugin. It provides common configuration for
    various servers so you can get started quickly.
    GitHub - neovim/nvim-lspconfig: Quickstart configurations for the Nvim LSP client

  2. Install a language server. A list of language servers can be found here:
    Language Servers
    See individual server documentation for installation instructions.

  3. Add lua require(‘lspconfig’).xx.setup{…} to your init.vim, where “xx” is
    the name of the relevant config. See the nvim-lspconfig README for details.
    NOTE: Make sure to restart nvim after installing and configuring.

  4. Check that an LSP client has attached to the current buffer:

    :lua print(vim.inspect(vim.lsp.buf_get_clients()))

" auto-install vim-plug
if empty(glob('~/.config/nvim/autoload/plug.vim'))
  silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  autocmd VimEnter * PlugInstall | source $MYVIMRC
endif

call plug#begin('~/.config/nvim/autoload/plugged')
Plug 'neovim/nvim-lspconfig'

call plug#end()

" Automatically install missing plugins on startup
autocmd VimEnter *
  \  if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
  \|   PlugInstall --sync | q
  \| endif

:LspInstall was removed awhile ago. There are alternative plugins implementing this functionality listed in our wiki.

Where did you see a reference to :LspInstall?

:h lsp

Thought the latest documentation was there. Thanks for that other link.

I don’t see any reference to LspInstall in :h lsp. I would recommend updating to the latest master (We removed these references a few months ago I believe)

Ohhhh that’s possibly what happened. This morning I had a previous version, I must have read that documentation. I updated since then. Sorry about this.

No worries! I just wanted to make sure I didn’t miss a reference somewhere :laughing:

You can subscribe to Following HEAD - subscribe to follow master breaking changes · Issue #14090 · neovim/neovim · GitHub to be notified about breaking changes such as the removal of LspInstall.

1 Like