The open source coding agent.
TypeScript
docs: document out of box lsps (#2213)
Aiden Cline07ed2a8391c2
diff --git a/packages/web/src/content/docs/docs/lsp.mdx b/packages/web/src/content/docs/docs/lsp.mdxindex d674cc70dae..6a661521cbc 100644--- a/packages/web/src/content/docs/docs/lsp.mdx+++ b/packages/web/src/content/docs/docs/lsp.mdx@@ -11,19 +11,26 @@ opencode integrates with your Language Server Protocol (LSP) to help the LLM intopencode comes with several built-in LSP servers for popular languages:-| LSP Server | Extensions | Requirements |-| ---------- | -------------------------------------------- | ----------------------------------- |-| 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 |-| gopls | .go | `go` command available |-| ruby-lsp | .rb, .rake, .gemspec, .ru | `ruby` and `gem` commands available |-| pyright | .py, .pyi | `pyright` dependency installed |-| elixir-ls | .ex, .exs | `elixir` command available |-| zls | .zig, .zon | `zig` command available |-| csharp | .cs | `.NET SDK` installed |+| LSP Server | Extensions | Requirements |+| ---------- | ---------------------------------------------------- | ----------------------------------- |+| typescript | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts | `typescript` dependency in project |+| eslint | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts, .vue | `eslint` dependency in project |+| gopls | .go | `go` command available |+| ruby-lsp | .rb, .rake, .gemspec, .ru | `ruby` and `gem` commands available |+| pyright | .py, .pyi | `pyright` dependency installed |+| elixir-ls | .ex, .exs | `elixir` command available |+| zls | .zig, .zon | `zig` command available |+| 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.+:::note+You can disable automatic LSP server downloads by setting the `OPENCODE_DISABLE_LSP_DOWNLOAD` environment variable to `true`.+:::+---## How It Works