mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-06 09:24:55 +01:00
docs: document out of box lsps (#2213)
This commit is contained in:
@@ -11,19 +11,26 @@ opencode integrates with your Language Server Protocol (LSP) to help the LLM int
|
|||||||
|
|
||||||
opencode comes with several built-in LSP servers for popular languages:
|
opencode comes with several built-in LSP servers for popular languages:
|
||||||
|
|
||||||
| LSP Server | Extensions | Requirements |
|
| LSP Server | Extensions | Requirements |
|
||||||
| ---------- | -------------------------------------------- | ----------------------------------- |
|
| ---------- | ---------------------------------------------------- | ----------------------------------- |
|
||||||
| typescript | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts | `typescript` dependency in project |
|
| typescript | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts | `typescript` dependency in project |
|
||||||
| eslint | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts | `eslint` dependency in project |
|
| eslint | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts, .vue | `eslint` dependency in project |
|
||||||
| gopls | .go | `go` command available |
|
| gopls | .go | `go` command available |
|
||||||
| ruby-lsp | .rb, .rake, .gemspec, .ru | `ruby` and `gem` commands available |
|
| ruby-lsp | .rb, .rake, .gemspec, .ru | `ruby` and `gem` commands available |
|
||||||
| pyright | .py, .pyi | `pyright` dependency installed |
|
| pyright | .py, .pyi | `pyright` dependency installed |
|
||||||
| elixir-ls | .ex, .exs | `elixir` command available |
|
| elixir-ls | .ex, .exs | `elixir` command available |
|
||||||
| zls | .zig, .zon | `zig` command available |
|
| zls | .zig, .zon | `zig` command available |
|
||||||
| csharp | .cs | `.NET SDK` installed |
|
| csharp | .cs | `.NET SDK` installed |
|
||||||
|
| vue | .vue | Auto-installs for Vue projects |
|
||||||
|
| rust | .rs | `rust-analyzer` command available |
|
||||||
|
| clangd | .c, .cpp, .cc, .cxx, .c++, .h, .hpp, .hh, .hxx, .h++ | Auto-installs for C/C++ projects |
|
||||||
|
|
||||||
LSP servers are automatically enabled when one of the above file extensions are detected and the requirements are met.
|
LSP servers are automatically enabled when one of the above file extensions are detected and the requirements are met.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
You can disable automatic LSP server downloads by setting the `OPENCODE_DISABLE_LSP_DOWNLOAD` environment variable to `true`.
|
||||||
|
:::
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## How It Works
|
## How It Works
|
||||||
|
|||||||
Reference in New Issue
Block a user