语言支持
支持以下语言和语言服务器。要使用语言服务器功能,你必须首先安装 lsp。
使用 hx --health
检查你安装的 Helix 版本中的语言支持。
有关语言配置的更多信息,请参阅 语言配置 文档和 添加语言 指南。
Language | Syntax Highlighting | Treesitter Textobjects | Auto Indent | Default LSP |
---|---|---|---|---|
astro | ✓ | |||
awk | ✓ | ✓ | awk-language-server | |
bash | ✓ | bash-language-server | ||
bass | ✓ | bass | ||
beancount | ✓ | |||
c | ✓ | ✓ | ✓ | clangd |
c-sharp | ✓ | ✓ | OmniSharp | |
cairo | ✓ | |||
clojure | ✓ | clojure-lsp | ||
cmake | ✓ | ✓ | ✓ | cmake-language-server |
comment | ✓ | |||
cpon | ✓ | ✓ | ||
cpp | ✓ | ✓ | ✓ | clangd |
css | ✓ | vscode-css-language-server | ||
cue | ✓ | cuelsp | ||
dart | ✓ | ✓ | dart | |
devicetree | ✓ | |||
diff | ✓ | |||
dockerfile | ✓ | docker-langserver | ||
dot | ✓ | dot-language-server | ||
edoc | ✓ | |||
eex | ✓ | |||
ejs | ✓ | |||
elixir | ✓ | ✓ | elixir-ls | |
elm | ✓ | elm-language-server | ||
elvish | ✓ | elvish | ||
erb | ✓ | |||
erlang | ✓ | ✓ | erlang_ls | |
esdl | ✓ | |||
fish | ✓ | ✓ | ✓ | |
fortran | ✓ | ✓ | fortls | |
gdscript | ✓ | ✓ | ||
git-attributes | ✓ | |||
git-commit | ✓ | |||
git-config | ✓ | |||
git-ignore | ✓ | |||
git-rebase | ✓ | |||
gleam | ✓ | ✓ | gleam | |
glsl | ✓ | ✓ | ✓ | |
go | ✓ | ✓ | ✓ | gopls |
godot-resource | ✓ | |||
gomod | ✓ | gopls | ||
gotmpl | ✓ | gopls | ||
gowork | ✓ | gopls | ||
graphql | ✓ | |||
hare | ✓ | |||
haskell | ✓ | haskell-language-server-wrapper | ||
hcl | ✓ | ✓ | terraform-ls | |
heex | ✓ | ✓ | ||
html | ✓ | vscode-html-language-server | ||
idris | idris2-lsp | |||
iex | ✓ | |||
java | ✓ | jdtls | ||
javascript | ✓ | ✓ | ✓ | typescript-language-server |
jsdoc | ✓ | |||
json | ✓ | ✓ | vscode-json-language-server | |
jsonnet | ✓ | jsonnet-language-server | ||
jsx | ✓ | ✓ | ✓ | typescript-language-server |
julia | ✓ | julia | ||
kotlin | ✓ | kotlin-language-server | ||
latex | ✓ | ✓ | texlab | |
lean | ✓ | lean | ||
ledger | ✓ | |||
llvm | ✓ | ✓ | ✓ | |
llvm-mir | ✓ | ✓ | ✓ | |
llvm-mir-yaml | ✓ | ✓ | ||
lua | ✓ | ✓ | ✓ | lua-language-server |
make | ✓ | |||
markdown | ✓ | marksman | ||
markdown.inline | ✓ | |||
meson | ✓ | ✓ | ||
mint | mint | |||
nickel | ✓ | ✓ | nls | |
nix | ✓ | rnix-lsp | ||
nu | ✓ | |||
ocaml | ✓ | ✓ | ocamllsp | |
ocaml-interface | ✓ | ocamllsp | ||
odin | ✓ | ols | ||
openscad | ✓ | openscad-lsp | ||
org | ✓ | |||
pascal | ✓ | ✓ | pasls | |
perl | ✓ | ✓ | ✓ | |
php | ✓ | ✓ | ✓ | intelephense |
prisma | ✓ | prisma-language-server | ||
prolog | swipl | |||
protobuf | ✓ | ✓ | ||
python | ✓ | ✓ | ✓ | pylsp |
r | ✓ | R | ||
racket | racket | |||
regex | ✓ | |||
rescript | ✓ | ✓ | rescript-language-server | |
rmarkdown | ✓ | ✓ | R | |
ron | ✓ | ✓ | ||
ruby | ✓ | ✓ | ✓ | solargraph |
rust | ✓ | ✓ | ✓ | rust-analyzer |
scala | ✓ | ✓ | metals | |
scheme | ✓ | |||
scss | ✓ | vscode-css-language-server | ||
slint | ✓ | ✓ | slint-lsp | |
sml | ✓ | |||
solidity | ✓ | solc | ||
sql | ✓ | |||
sshclientconfig | ✓ | |||
starlark | ✓ | ✓ | ||
svelte | ✓ | svelteserver | ||
swift | ✓ | sourcekit-lsp | ||
tablegen | ✓ | ✓ | ✓ | |
task | ✓ | |||
tfvars | terraform-ls | |||
toml | ✓ | taplo | ||
tsq | ✓ | |||
tsx | ✓ | ✓ | ✓ | typescript-language-server |
twig | ✓ | |||
typescript | ✓ | ✓ | ✓ | typescript-language-server |
ungrammar | ✓ | |||
v | ✓ | vls | ||
vala | ✓ | vala-language-server | ||
verilog | ✓ | ✓ | svlangserver | |
vue | ✓ | vls | ||
wast | ✓ | |||
wat | ✓ | |||
wgsl | ✓ | wgsl_analyzer | ||
xit | ✓ | |||
yaml | ✓ | ✓ | yaml-language-server | |
zig | ✓ | ✓ | zls |