第三方插件
这些是其他社区维护的插件,你可以在编辑器中安装:
¥These are plugin maintained by other communities, that you install in your editor:
-
¥
vim:ALEsupports Biome, just follow the installation instructions -
neovim:你必须安装nvim-lspconfig,然后遵循 instructions。ALE还支持 Biome。¥
neovim: you’ll have to installnvim-lspconfig, and follow the instructions.ALEalso supports Biome. -
¥
helix: follow the instruction of this manual -
sublime text:遵循LSP-biome安装说明¥
sublime text: follow theLSP-biomeinstallation instructions -
Emacs:确保已安装lsp-mode,按照lsp-biome安装说明在lsp-mode中启用 Biome 支持¥
Emacs: ensure you havelsp-modeinstalled, follow thelsp-biomeinstallation instructions to enable Biome support inlsp-mode
Helix
Section titled Helix目前,biome 支持以下文件扩展名:js、jsx、ts、tsx、d.ts、json 和 jsonc。
¥Currently, biome supports the following file extensions: js, jsx, ts, tsx, d.ts, json and jsonc.
Biome 有一个 lsp-proxy 命令,它充当 stdin/stdout 上的语言服务器协议的服务器。
¥Biome has an lsp-proxy command that acts as a server for the Language Server Protocol over stdin/stdout.
Helix 23.10
Section titled Helix 23.10Helix 23.10 有 支持多种语言服务器。现在你可以将 biome 与 typescript-language-server 一起使用。
¥Helix 23.10 has support for multiple language servers. Now you can use biome alongside typescript-language-server.
[language-server]biome = { command = "biome", args = ["lsp-proxy"] }
[[language]]name = "javascript"language-servers = [ { name = "typescript-language-server", except-features = [ "format" ] }, "biome" ]auto-format = true
[[language]]name = "typescript"language-servers = [ { name = "typescript-language-server", except-features = [ "format" ] }, "biome" ]auto-format = true
[[language]]name = "tsx"auto-format = truelanguage-servers = [ { name = "typescript-language-server", except-features = [ "format" ] }, "biome" ]
[[language]]name = "jsx"auto-format = truelanguage-servers = [ { name = "typescript-language-server", except-features = [ "format" ] }, "biome" ]
[[language]]name = "json"language-servers = [ { name = "vscode-json-language-server", except-features = [ "format" ] }, "biome" ]¥Video record
¥Code Action
¥Formatting