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:
-
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 -
Install a language server. A list of language servers can be found here:
Language Servers
See individual server documentation for installation instructions. -
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. -
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