neovim 0.5安装lsp需要手动配置,对于新手来说还是有一些难度的。
手动配置教程如下:
https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md
那么有没有什么方法可以简化这个过程呢?那么它来了。
项目地址:
https://github.com/kabouzeid/nvim-lspinstall
可以简化lsp安装配置,自动配置lsp。
Bundled Installers
支持语言列表:
Language | Language Server |
---|---|
angular | Angular Language Service |
bash | bash-language-server |
clojure | clojure-lsp |
cmake | cmake-language-server |
cpp | clangd |
csharp | OmniSharp |
css | css-language-features (pulled directly from the latest VSCode release) |
dockerfile | docker-langserver |
elixir | Elixir Language Server (elixir-ls) |
elm | Elm Language Server (elm-ls) |
ember | Ember Language Server |
fortran | Fortran Language Server (fortls) |
go | gopls |
graphql | GraphQL language service |
haskell | haskell-language-server |
html | html-language-features (pulled directly from the latest VSCode release) |
java | Eclipse JDTLS with Lombok |
json | json-language-features (pulled directly from the latest VSCode release) |
kotlin | kotlin-language-server |
latex | texlab |
lua | (sumneko) lua-language-server |
php | intelephense |
puppet | puppet-editor-services |
purescript | purescript-language-server |
python | pyright-langserver |
ruby | solargraph |
rust | rust-analyzer |
svelte | svelte-language-server |
tailwindcss | tailwindcss-intellisense (pulled directly from the latest VSCode extension) |
terraform | Terraform Language Server (terraform-ls) |
typescript | typescript-language-server |
vim | vim-language-server |
vue | vls (vetur) |
yaml | yaml-language-server |
Name | Description |
---|---|
deno | https://deno.land/ |
diagnosticls | https://github.com/iamcco/diagnostic-languageserver |
efm | https://github.com/mattn/efm-langserver |
rome | https://rome.tools/ |
具体使用细节可以参考项目主页说明。