语言服务器协议 - Arch Linux 中文维基

跳转到内容

# 语言服务器协议

来自 Arch Linux 中文维基
翻译状态：

- 本文（或部分内容）译自 Language Server Protocol，最近一次同步于 2026-08-02，若英文版本有所更改，则您可以帮助同步与翻译更改的内容。
- 您可以在 ArchWiki 的对应页面找到本文翻译的原始修订历史。
- 本文可能与英文原文存在出入。

语言服务器协议（LSP）定义了编辑器或者 IDE 与语言服务器之间使用的协议，它提供了如自动补全、转到定义、查找所有引用等功能。

语言服务器可以安装以下软件包。如果你所使用的编程语言不在该列表中，请在 Arch 的官方仓库或在 AUR 中寻找。

注意：多数情况下，你每一种语言只需要一个语言服务器即可。但是一些语言服务器可能不包含某些功能，此时你可能就需要安装多个语言服务器。更多信息请参阅上游文档。

语言 | 语言服务器 | 语言服务器软件包名
--- | --- | ---
Ada/SPARK | als | ada_language_serverAUR
Angular | angularls |
Ansible | ansible-language-server | ansible-language-serverAUR
Arduino | arduino-language-server | arduino-language-server包
Assembly | asm-lsp | asm-lspAUR
Astrojs | astrojs-language-server | astrojs-language-serverAUR
Autotools | autotools-language-server | autotools-language-serverAUR
AWK | awk-language-server | awk-language-serverAUR
Bash | bashls | bash-language-server包
Bazel | bazelrc-lsp | bazelrc-lspAUR
Bicep | bicep | bicep-langserver-binAUR
C3 | c3-lsp | c3-lspAUR
C# | omnisharp-roslyn | omnisharp-roslynAUR
C, C++, Objective-C | ccls, clangd | ccls包, clang包
Cabal | hls | haskell-language-server包
Clojure | clojure_lsp | clojure-lsp-binAUR
CMake | cmake, neocmakelsp | cmake-language-serverAUR, neocmakelspAUR
CodeQL | codeqlls | codeqlAUR
Crystal | crystalline | crystallineAUR
CSS, LESS, SASS | cssls, tailwindcss | vscode-css-languageserver包, tailwindcss-language-server包
D | serve-d | serve-dAUR
Dart | dartls | dart包
Dhall | dhall-lang | dhall-lsp-server包
Dockerfile, Dockercompose | dockerls, compose-language-service | dockerfile-language-server包, nodejs-compose-language-serviceAUR
DOT | dot-language-server | dot-language-server包
Elixir | elixirls | elixir-lsAUR
Elm | elmls | elm-language-serverAUR
Erlang | elp, erlangls | elpAUR, erlang_lsAUR
F# | fsautocomplete, fsharp-language-server | fsharp-language-serverAUR, fsautocomplete-binAUR
Fennel | fennel-ls | fennel-lsAUR
Fish | fish-lsp | fish-lspAUR
Flow | flow | flowAUR
Fortran | fortls, fortran-language-server | fortlsAUR, fortran-language-serverAUR
GDScript | gdscript | godot包
General purpose | diagnosticls, efm | diagnostic-languageserverAUR, efm-langserverAUR
Gleam | gleam | gleam包
GOlang | gopls | gopls包
GraphQL | graphql | graphql-lspAUR
Groovy | groovyls | groovy-language-server-gitAUR
Haskell | hls | haskell-language-server包
Haxe | haxe_language_server |
HTML | html | vscode-html-languageserver包
Hyprlang | hyprls | hyprlsAUR
Janet | janet-lsp |
Java | java_language_server, jdtls | java-language-serverAUR, jdtlsAUR
JavaScript | denols | deno包
JSON | jsonls | vscode-json-languageserver包
Julia | julials |
Jupyter | jupyterlab-lsp | jupyterlab-lsp包
Just | just-lsp | just-lsp包
KDL |  |
Kotlin | kotlin_language_server | kotlin-language-serverAUR
Kubernetes |  |
Lean 3 | lean3ls | lean-language-serverAUR
Lean 4 |  |
Lua | lua_ls, emmylua_ls | lua-language-server包, emmylua-ls-binAUR
Makefile | autotools-language-server | autotools-language-serverAUR
Markdown | marksman, markdown-oxide, rumdl | marksman包, markdown-oxide包, rumdl包
Meson | muon analyze lsp, mesonlsp | muon-mesonAUR, mesonlspAUR
Mojo | mojo-lsp-server | mojo-gitAUR
Natural language | typos-lsp, codebook | typos-lsp包, codebook-lsp包
Nginx | nginx-language-server |
Nickel | nls | nickel-language-server包
Nim | nimls | nimlspAUR
nix | nil, nixd | nil-gitAUR, nixdAUR
Nushell | nu --lsp | nushell包
OCaml, Reason | ocamllsp | ocaml-lsp-gitAUR
Odin | ols | odinls-binAUR
OmniSharp | omnisharp | omnisharp-roslynAUR
Perl | perlls | perl-perl-languageserverAUR
PHP | phpactor, intelephense | phpactorAUR, nodejs-intelephenseAUR
Pkl | pkl-lsp |
Pony | pony-lsp | ponyc包
PowerShell | powershell_es | powershell-editor-services-binAUR
PureScript | purescriptls | purescript-language-serverAUR
Python | pylsp, basedpyright, pyright, jedi_language_server, pyrefly, ruff, ty | python-lsp-server包, pyright包, basedpyrightAUR, jedi-language-server包, pyreflyAUR, ruff包, ty包
QML | qmlls | qt6-declarative包
R | r_language_server | r-languageserverAUR
Racket | racket_langserver |
ReScript | rescriptls | rescript-lsAUR
Roc | roc_language_server | roc-nightly-binAUR
RST |  |
Ruby | solargraph, sorbet, ruby-lsp | ruby-solargraphAUR, ruby-sorbet-runtime包, ruby-lsp包
Rust | rust_analyzer | rust-analyzer包
Scala | metals | metalsAUR
Solidity | solc --lsp | solidityAUR
SQL | sqls, sql-language-server | sqlsAUR, sql-language-serverAUR
Standard ML | Millet | milletAUR
Svelte | svelte | svelte-language-server包
Swift | sourcekit | swift-languageAUR
Systemd | systemd-lsp | systemd-lsp包
SystemVerilog | svls | svlsAUR
Tcl |  |
Terraform | terraformls | terraform-lsAUR
TOML | taplo, tombi | taplo-cli包, tombi包
(La)TeX | texlab | texlab包
TypeScript | tsserver, denols | typescript-language-server包, deno包
Typst | tinymist | tinymist包
V | v-analyzer | v-analyzer-binAUR
Vala | vala_ls | vala-language-serverAUR
Vimscript | vimls | vim-language-serverAUR
Vue | volar | vue-language-server包
WebAssembly | wasm-language-tools | wasm-language-toolsAUR
XML | LemMinX | lemminxAUR
YAML | yamlls | yaml-language-server包
Zig | zls | zls包
Zsh |  |

## 参见

- Wikipedia:Language Server Protocol
- neovim 的 LSP 配置综合列表
- langserver 一个由社区驱动的关于语言服务器协议集成的知识库
- A community-driven source of knowledge for Language Server Protocol implementations

分类：​

- 开发
- 编程语言

语言服务器协议
添加话题