id stringlengths 20 30 | source stringclasses 1
value | chunk_index int64 0 520k | token_count int32 154 512 | content stringlengths 185 57.5k |
|---|---|---|---|---|
rust_dataset_chunk_509700 | rust_dataset.txt | 509,700 | 512 | increase_indent_pattern = ":\\s*$"
```
For example, to outdent lines beginning with `end`:
```toml
decrease_indent_pattern = "^\\s*end\\b"
```
#### Aligning clauses with related blocks
Use `decrease_indent_patterns` when a line should align with a related block
instead of always moving left by one level. In `indent... |
rust_dataset_chunk_509701 | rust_dataset.txt | 509,701 | 512 | controls which non-alphabetic characters are considered part of a word, for example when you double click to select a variable. In JavaScript, "$" and "#" are considered word characters.
There is also a language-specific setting called `completion_query_characters` that controls which characters trigger autocomplete ... |
rust_dataset_chunk_509702 | rust_dataset.txt | 509,702 | 512 | ort, however, because languages like JavaScript do not syntactically differentiate between closures and top-level function declarations.
For languages with declarations like C, provide queries that match `@class.around` or `@function.around`. The `if` and `ic` text objects will default to these if there is no inside.
... |
rust_dataset_chunk_509703 | rust_dataset.txt | 509,703 | 512 | a `redactions.scm` file for JSON:
```scheme
(pair value: (number) @redact)
(pair value: (string) @redact)
(array (number) @redact)
(array (string) @redact)
```
This query marks number and string values in key-value pairs and arrays for redaction.
| Capture | Description |
| ------- | ------------... |
rust_dataset_chunk_509704 | rust_dataset.txt | 509,704 | 512 | ::Extension for MyExtension {
fn language_server_command(
&mut self,
language_server_id: &LanguageServerId,
worktree: &zed::Worktree,
) -> Result<zed::Command> {
Ok(zed::Command {
command: get_path_to_language_server_executable()?,
args: get_args_for_langu... |
rust_dataset_chunk_509705 | rust_dataset.txt | 509,705 | 512 | semantic_tokens` setting accepts the following values:
- `"off"` (default): Do not request semantic tokens from language servers.
- `"combined"`: Use LSP semantic tokens together with tree-sitter highlighting.
- `"full"`: Use LSP semantic tokens exclusively, replacing tree-sitter highlighting.
#### Extension-Provided... |
rust_dataset_chunk_509706 | rust_dataset.txt | 509,706 | 512 | in the following priority order (highest to lowest):
1. **User settings** — rules from `semantic_token_rules` in your settings file.
2. **Extension rules** — rules from `semantic_token_rules.json` in extension language directories.
3. **Default rules** — Zed's built-in rules for standard LSP token types.
Each rule i... |
rust_dataset_chunk_509707 | rust_dataset.txt | 509,707 | 512 | : "MCP Server Extensions for Zed extensions."
---
# MCP Server Extensions
> We plan to deprecate MCP server extensions in favor of the [official MCP registry](https://registry.modelcontextprotocol.io/). To keep your MCP server available in Zed, publish it to the official registry as well. Follow our deprecation progr... |
rust_dataset_chunk_509708 | rust_dataset.txt | 509,708 | 512 | .
- [Installing Extensions](./extensions/installing-extensions.md)
- [Extension Capabilities](./extensions/capabilities.md)
- [Developing Extensions](./extensions/developing-extensions.md)
- [Developing Debugger Extensions](./extensions/debugger-extensions.md)
- [Developing Icon Themes](./extensions/icon-themes.md... |
rust_dataset_chunk_509709 | rust_dataset.txt | 509,709 | 512 | my PR closed? {#pr-closed}
If your PR was closed without much feedback, it severely violated the [publishing prerequisites](./prerequisites.md). Due to the high volume of submissions, we do not provide more context in such cases. Please make sure to read through the prerequisites again.
Furthermore, as stated in the... |
rust_dataset_chunk_509710 | rust_dataset.txt | 509,710 | 512 | ained regardless, that is exactly what the policies further down this page are for.
## Do the prerequisites also apply to already published extensions? {#prerequisites-for-existing-extensions}
Yes. Existing extensions are not exempt from the prerequisites, and updates are held to the same standards as new submissions... |
rust_dataset_chunk_509711 | rust_dataset.txt | 509,711 | 512 | -extensions) organization, where maintenance continues as a joint effort of the community and Zed staff.
We will only take either action if one of the following requirements is met:
- the current owner has given written permission, or
- there is **written proof** of attempts to establish contact, and the owner has be... |
rust_dataset_chunk_509712 | rust_dataset.txt | 509,712 | 512 | 3.0.en.html)
- [MIT](https://opensource.org/license/mit)
- [Unlicense](https://unlicense.org)
- [zlib](https://opensource.org/license/zlib)
This allows us to distribute the resulting binary produced from your extension code to our users.
Without a valid license, the pull request to add or update your extension will fa... |
rust_dataset_chunk_509713 | rust_dataset.txt | 509,713 | 512 | your extension for publishing, make sure it meets the following requirements.
Note that maintainers will raise non-compliance during the publishing process. Should you choose not to follow these requirements, publishing will be delayed or may outright be rejected.
## General Requirements
- Test your extension withi... |
rust_dataset_chunk_509714 | rust_dataset.txt | 509,714 | 512 | user's environment through the [Zed Rust Extension API](https://docs.rs/zed_extension_api/latest/zed_extension_api/).
## Debugger Extensions
- Should your extension only provide a debugger, make sure your extension ID reflects that (e.g., by suffixing it with `-debugger`).
- Do not bundle the debug adapter with the ... |
rust_dataset_chunk_509715 | rust_dataset.txt | 509,715 | 512 | the steps below after satisfying these requirements. The publishing may be delayed or outright rejected otherwise.
Follow each step carefully to help the publishing process go smoothly.
## Pull request rules {#pull-request-rules}
To keep the review queue manageable, the following rules apply to every PR against the... |
rust_dataset_chunk_509716 | rust_dataset.txt | 509,716 | 512 | the submodule, you can use the `path` field to point to where the extension resides:
```toml
[my-extension]
submodule = "extensions/my-extension"
path = "packages/zed"
version = "0.0.1"
```
3. Run `pnpm sort-extensions` to ensure `extensions.toml` and `.gitmodules` are sorted.
That's it! Once your PR is accepted an... |
rust_dataset_chunk_509717 | rust_dataset.txt | 509,717 | 512 | ---
# Slash Commands
Extension-provided slash commands have been removed from Zed.
To extend the Agent Panel with custom tools and context, use [MCP Servers](./mcp-extensions.md) instead.
--- FILE: zed/docs/src/extensions/snippets.md ---
---
title: Snippets
description: "Snippets for Zed extensions."
---
# Snippe... |
rust_dataset_chunk_509718 | rust_dataset.txt | 509,718 | 512 | `: The main background color
- `foreground`: The main text color
- `accent`: The accent color used for highlighting and emphasis
3. Syntax Highlighting:
- `syntax`: An object containing color definitions for various syntax elements (e.g., keywords, strings, comments)
4. UI Elements:
- Colors for various... |
rust_dataset_chunk_509719 | rust_dataset.txt | 509,719 | 512 | _search::OpenTextFinder}. Changed your mind and want a more detailed search with extra filters? Move to the project search using the button in the Actions menu in the right bottom corner.
## Project Search
Search across all files with {#kb pane::DeploySearch}. Type the query in the search field, then press Enter to r... |
rust_dataset_chunk_509720 | rust_dataset.txt | 509,720 | 512 | symbols in the current file. It's especially useful with [multibuffers](./multibuffers.md) for navigating search results or diagnostics.
[Learn more about the Outline Panel →](./outline-panel.md)
## Tab Switcher
Quickly switch between open tabs with {#kb tab_switcher::Toggle}. Tabs are sorted by recent use—keep hol... |
rust_dataset_chunk_509721 | rust_dataset.txt | 509,721 | 512 | -app
```
Or use `Cmd+O` (macOS) / `Ctrl+O` (Linux/Windows) to open a folder from within Zed.
By default, new projects open in your current window's threads sidebar. To open in a new window instead, use `zed -n ~/projects/my-app` or press `Cmd+Enter` when selecting from Open Recent. See [Windows & Projects](./windows-... |
rust_dataset_chunk_509722 | rust_dataset.txt | 509,722 | 512 | others, install the extension:
1. Open Extensions with `Cmd+Shift+X` (macOS) or `Ctrl+Shift+X` (Linux/Windows)
2. Search for your language
3. Click Install
See [Languages](./languages.md) for language-specific setup instructions.
### 5. Try AI Features
Zed includes built-in AI assistance. Open the Agent Panel with... |
rust_dataset_chunk_509723 | rust_dataset.txt | 509,723 | 512 | For operations that Zed doesn't support natively, you can use the integrated terminal.
## Repository Activation
When a project is rooted at a git repository, or at a subdirectory of one, all repositories in it are active immediately.
When a project is not rooted at a repository (a home directory, a folder of project... |
rust_dataset_chunk_509724 | rust_dataset.txt | 509,724 | 512 | To turn this off or add a delay before it appears, go to **Version Control > Inline Git Blame**.
#### Hiding the Gutter Indicators
The colored bars in the gutter that show added, modified, and deleted lines can be hidden. Go to **Version Control > Git Gutter** and set **Visibility** to "Hide".
#### Commit Message L... |
rust_dataset_chunk_509725 | rust_dataset.txt | 509,725 | 512 | Diff](#project-diff), [File History](#file-history), and [Stash Diff View](#stash-diff-view). These diff views function as [multibuffers](./multibuffers.md), allowing you to edit multiple excerpts simultaneously.
## File History
File History shows the commit history for an individual file. Each entry displays the co... |
rust_dataset_chunk_509726 | rust_dataset.txt | 509,726 | 512 | binding and then immediately commit with {#action git::Commit} ({#kb git::Commit}).
### Using the Git Panel
From the panel, you can simply type a commit message and hit the commit button, or {#action git::Commit}. This will automatically stage all tracked files (indicated by a `[·]` in the entry's checkbox) and commi... |
rust_dataset_chunk_509727 | rust_dataset.txt | 509,727 | 512 | branch using {#action git::Branch} or switch to an existing branch using {#action git::Switch} or {#action git::CheckoutBranch}.
When you are working in a [Git worktree](#git-worktrees), use the branch picker after switching to the worktree to create or check out the branch you want to use there.
### Deleting Branch... |
rust_dataset_chunk_509728 | rust_dataset.txt | 509,728 | 512 | multiple Git repositories (i.e., multi-root folders), Zed creates a linked worktree for each repository when creating a new worktree from the picker.
Non-Git folders in the same project are included in the new workspace as-is.
## Merge Conflicts
When you encounter merge conflicts after a merge, rebase, or pull, Zed ... |
rust_dataset_chunk_509729 | rust_dataset.txt | 509,729 | 512 | is always available.
Each of these actions first prompts for an optional stash name. Confirming with an empty prompt lets git generate its usual `WIP on ...` description.
### Managing Stashes
Zed provides a stash picker accessible via {#action git::ViewStash} or from the Git Panel's overflow menu. From the stash pi... |
rust_dataset_chunk_509730 | rust_dataset.txt | 509,730 | 512 | -models) for more information.
```json [settings]
{
"agent": {
"commit_message_model": {
"provider": "anthropic",
"model": "claude-4-5-haiku"
}
}
}
```
To add custom commit instructions for the model, use the global `AGENTS.md` file located at `~/.config/zed/AGENTS.md` on macOS and Linux, `%AP... |
rust_dataset_chunk_509731 | rust_dataset.txt | 509,731 | 512 | permalinks resolve to your domain:
```json [settings]
{
"git_hosting_providers": [
{
"provider": "gitlab",
"name": "Corp GitLab",
"base_url": "https://git.example.corp"
}
]
}
```
The `provider` field specifies which type of hosting service you're using. Supported `provider` values are `... |
rust_dataset_chunk_509732 | rust_dataset.txt | 509,732 | 512 | Hunk}
> **Tip:** The `Escape` key is the quickest way to collapse all expanded diff hunks and return to an overview of your changes.
## Action Reference
| Action | Keybinding |
| ----------------------------------------- | --------------------------------... |
rust_dataset_chunk_509733 | rust_dataset.txt | 509,733 | 512 | {#action git::Blame} | {#kb git::Blame} |
| {#action git::StashAll} | {#kb git::StashAll} |
| {#action git::StashTracked} | {#kb git::StashTracked} |
| {#action git::StashStaged} | {#kb git::StashSt... |
rust_dataset_chunk_509734 | rust_dataset.txt | 509,734 | 512 | en.wikipedia.org/wiki/Regular_expression). In Zed, globs are commonly used when matching filenames.
## Glob Flavor
Zed uses two different rust crates for matching glob patterns:
- [ignore crate](https://docs.rs/ignore/latest/ignore/) for matching glob patterns stored in `.gitignore` files
- [glob crate](https://docs... |
rust_dataset_chunk_509735 | rust_dataset.txt | 509,735 | 512 | |
| ----------------- | ----------------------------------------------------------------- |
| `?` | Matches any single character |
| `*` | Matches any (possibly empty) sequence of characters |
| `**` | Matches the current direc... |
rust_dataset_chunk_509736 | rust_dataset.txt | 509,736 | 512 | /src/languages/*.md` this would match [`docs/src/languages/rust.md`](https://github.com/zed-industries/zed/blob/main/docs/src/languages/rust.md) and [`docs/src/languages/cpp.md`](https://github.com/zed-industries/zed/blob/main/docs/src/languages/cpp.md) but not [`docs/src/configuring-languages.md`](https://github.com/z... |
rust_dataset_chunk_509737 | rust_dataset.txt | 509,737 | 512 | /library/glob.html) (Python Standard Library)
- [Golang glob](https://pkg.go.dev/path/filepath#Match) (Go Standard Library)
- [gitignore patterns](https://git-scm.com/docs/gitignore) (Gitignore Pattern Format)
- [PowerShell: About Wildcards](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/... |
rust_dataset_chunk_509738 | rust_dataset.txt | 509,738 | 512 | ), `t` is the type/class text object, `c` is the comment text object, and `x` is the (X)HTML element text object.
Like Helix, the closest surrounding pair (`m i m`, `m a m`, `m d m`, `m r m`) is matched using the language's syntax tree, so delimiters inside string literals or comments don't count as pairs. In buffers ... |
rust_dataset_chunk_509739 | rust_dataset.txt | 509,739 | 512 | ](https://zed.dev/download). If you want to download our preview build, you can find it on its [releases page](https://zed.dev/releases/preview). After the first manual installation, Zed will periodically check for install updates.
You can also install Zed stable via Homebrew:
```sh
brew install --cask zed
```
As we... |
rust_dataset_chunk_509740 | rust_dataset.txt | 509,740 | 512 | | Codename | Apple Status | Zed Status |
| ------------------ | ----------- | -------------- | ------------------- |
| macOS 27.x | Golden Gate | Supported | Supported |
| macOS 26.x | Tahoe | Supported | Supported |
| macOS 15.x | Sequoia |... |
rust_dataset_chunk_509741 | rust_dataset.txt | 509,741 | 512 | 3 and later | Supported |
A 64-bit operating system is required to run Zed.
#### Windows Hardware
Zed supports machines with x64 (Intel, AMD) or Arm64 (Qualcomm) processors that meet the following requirements:
- Graphics: A GPU that supports DirectX 11 (most PCs from 2012+).
- Driver: Current NVIDIA/AMD/Intel/Qual... |
rust_dataset_chunk_509742 | rust_dataset.txt | 509,742 | 512 | set to them by default.
You can also customize them right from there, either by clicking on the pencil icon that appears when you hover over a particular action, by double-clicking on the action row, or by pressing the `enter` key.
Anything that you end up doing on the keymap editor also gets reflected on the `keyma... |
rust_dataset_chunk_509743 | rust_dataset.txt | 509,743 | 512 | ries/zed) if you run into something you think should work but isn't.
### Keybinding Syntax
Zed has the ability to match against not just a single keypress, but a sequence of keys typed in order. Each key in the `"bindings"` map is a sequence of keypresses separated with a space.
Each keypress is a sequence of modifi... |
rust_dataset_chunk_509744 | rust_dataset.txt | 509,744 | 512 | against typing a modifier key on its own. For example, `shift shift` can be used to implement JetBrains' 'Search Everywhere' shortcut. In this case, the binding happens on key release instead of on keypress.
### Contexts
If a binding group has a `"context"` key, it will be matched against the currently active contex... |
rust_dataset_chunk_509745 | rust_dataset.txt | 509,745 | 512 | > Editor` because of the intermediate `Pane` node.
If you're using Vim mode, we have information on how [vim modes influence the context](./vim.md#selecting-the-correct-context). Helix mode is built on top of Vim mode and uses the same contexts.
### Actions
Almost all of Zed's functionality is exposed as actions.
A... |
rust_dataset_chunk_509746 | rust_dataset.txt | 509,746 | 512 | 't type anything, or if you type a different key, then `DeleteToNextWordEnd` will be triggered. If you do, then `DeleteToEndOfLine` will be triggered.
Zed can also wait before inserting printable text when it might begin a multi-stroke binding. For example, with a `j k` binding, typing `j` waits briefly for `k`; other... |
rust_dataset_chunk_509747 | rust_dataset.txt | 509,747 | 512 | open the Settings Editor and search for
`Show Which-key Menu`. The pending keystrokes indicator remains visible when the
menu is enabled, and hovering it still pauses the timeout, but its binding list
popover is disabled. Or add this to your settings.json:
```json [settings]
{
"which_key": {
"enabled": true
}... |
rust_dataset_chunk_509748 | rust_dataset.txt | 509,748 | 512 | then we use the QWERTY-layout equivalent key for keyboard shortcuts. This means that many shortcuts can be typed on many layouts.
We do not yet remap shortcuts so every built-in shortcut is typeable on every layout. If your layout cannot type some ASCII characters, you may need custom key bindings. We plan to improve... |
rust_dataset_chunk_509749 | rust_dataset.txt | 509,749 | 512 | Keystrokes", "down down down down"],
// Expand the selection (editor::SelectLargerSyntaxNode);
// copy to the clipboard; and then undo the selection expansion.
"cmd-alt-c": [
"workspace::SendKeystrokes",
"ctrl-shift-right ctrl-shift-right ctrl-shift-right cmd-c ctrl-shift-left ctrl-shi... |
rust_dataset_chunk_509750 | rust_dataset.txt | 509,750 | 512 | Zed exposes word and subword motions as separate actions. Word motions stop at whitespace and punctuation boundaries, while subword motions also stop inside identifiers such as `camelCase`, `PascalCase`, and `snake_case`.
The JetBrains base keymap uses editor-local `alt-left` / `alt-right` and `shift-alt-left` / `shif... |
rust_dataset_chunk_509751 | rust_dataset.txt | 509,751 | 512 | json [settings]
{
"file_types": {
"Ansible": [
"**.ansible.yml",
"**.ansible.yaml",
"**/defaults/*.yml",
"**/defaults/*.yaml",
"**/meta/*.yml",
"**/meta/*.yaml",
"**/tasks/*.yml",
"**/tasks/*.yaml",
"**/handlers/*.yml",
"**/handlers/*.yaml",
"**/gr... |
rust_dataset_chunk_509752 | rust_dataset.txt | 509,752 | 512 | "interpreterPath": "python3"
},
"validation": {
"enabled": true,
"lint": {
"enabled": true,
"path": "ansible-lint"
}
}
}
}
```
> **Note:** In order for linting to work, ensure that `ansible-lint` is installed and discoverable on your `$PATH`.
When desired, any of the a... |
rust_dataset_chunk_509753 | rust_dataset.txt | 509,753 | 512 | ).
- Tree-sitter: [virchau13/tree-sitter-astro](https://github.com/virchau13/tree-sitter-astro)
- Language Server: [withastro/language-tools](https://github.com/withastro/astro/tree/main/packages/language-tools/language-server)
## Using the Tailwind CSS Language Server with Astro
To get all the features (autocomplet... |
rust_dataset_chunk_509754 | rust_dataset.txt | 509,754 | 512 | depends on it to provide diagnostics.
### Install `shellcheck`:
```sh
brew install shellcheck # macOS (HomeBrew)
apt-get install shellcheck # Ubuntu/Debian
pacman -S shellcheck # ArchLinux
dnf install shellcheck # Fedora
yum install shellcheck # CentOS/RH... |
rust_dataset_chunk_509755 | rust_dataset.txt | 509,755 | 512 | .com/biomejs/biome-zed) for a complete list of features and configuration options.
--- FILE: zed/docs/src/languages/clojure.md ---
---
title: Clojure
description: "Configure Clojure language support in Zed, including language servers, formatting, and debugging."
---
# Clojure
Clojure support is available through th... |
rust_dataset_chunk_509756 | rust_dataset.txt | 509,756 | 512 | Zed will use the `clangd` language server for formatting C code like the `clang-format` CLI tool. To configure this you can add a `.clang-format` file. For example:
```yaml
# yaml-language-server: $schema=https://json.schemastore.org/clang-format-21.x.json
---
BasedOnStyle: GNU
IndentWidth: 2
---
```
See [Clang-Form... |
rust_dataset_chunk_509757 | rust_dataset.txt | 509,757 | 512 | ZED_WORKTREE_ROOT/build/prog",
"request": "launch",
"adapter": "CodeLLDB"
}
]
```
--- FILE: zed/docs/src/languages/cpp.md ---
---
title: C++
description: "Configure C++ language support in Zed, including language servers, formatting, and debugging."
---
# C++
C++ support is available natively in Zed.
- T... |
rust_dataset_chunk_509758 | rust_dataset.txt | 509,758 | 512 | completions also contain placeholders for method parameters.
```json [settings]
{
"lsp": {
"clangd": {
"binary": {
"path": "/path/to/clangd",
"arguments": ["--function-arg-placeholders=0"]
}
}
}
}
```
## Formatting
By default Zed will use the `clangd` language server for form... |
rust_dataset_chunk_509759 | rust_dataset.txt | 509,759 | 512 | _COMPILE_COMMANDS ON)
```
After building your project, CMake will generate the `compile_commands.json` file in the build directory and clangd will automatically pick it up.
## Debugging
You can use CodeLLDB or GDB to [debug](../debugger.md) native binaries. (Make sure that your build process passes `-g` to the C++ c... |
rust_dataset_chunk_509760 | rust_dataset.txt | 509,760 | 512 | : [tree-sitter/tree-sitter-c-sharp](https://github.com/tree-sitter/tree-sitter-c-sharp)
- Language Servers:
- [roslyn-language-server](https://www.nuget.org/packages/roslyn-language-server#readme)
- [csharp-ls](https://github.com/razzmatazz/csharp-language-server)
- [OmniSharp/omnisharp-roslyn](https://github.com... |
rust_dataset_chunk_509761 | rust_dataset.txt | 509,761 | 512 | true,
"dotnet_enable_inlay_hints_for_literal_parameters": true,
"dotnet_enable_inlay_hints_for_indexer_parameters": true,
"dotnet_enable_inlay_hints_for_object_creation_parameters": true,
"dotnet_enable_inlay_hints_for_other_parameters": true,
"dotnet_suppress_inlay_hi... |
rust_dataset_chunk_509762 | rust_dataset.txt | 509,762 | 512 | " /* add extra arguments */]
}
}
}
}
```
csharp-ls can be configured in a Zed settings file with:
```json [settings]
{
"lsp": {
"csharp-ls": {
"binary": {
"path": "/path/to/csharp-ls",
"arguments": [
/* add extra arguments */
]
},
"settings": {
... |
rust_dataset_chunk_509763 | rust_dataset.txt | 509,763 | 512 | isense-css` language server is provided by Zed's built-in Tailwind CSS capabilities, and is an alternative to the default CSS language server; do not enable both at the same time.
For Tailwind CSS classes in other languages and frameworks, see the [language-specific configuration examples](./tailwindcss.md).
## Recom... |
rust_dataset_chunk_509764 | rust_dataset.txt | 509,764 | 512 | zed/docs/src/languages/deno.md ---
---
title: Deno
description: "Configure Deno language support in Zed, including language servers, formatting, and debugging."
---
# Deno
Deno support is available through the [Deno extension](https://github.com/zed-extensions/deno).
- Language server: [Deno Language Server](https:... |
rust_dataset_chunk_509765 | rust_dataset.txt | 509,765 | 512 | ://raw.githubusercontent.com/denoland/deno/refs/heads/main/cli/schemas/config-file.v1.json"
},
{
"fileMatch": [
"package.json"
],
"url": "https://www.schemastore.org/package"
}
]
}
}
}
}
```
## D... |
rust_dataset_chunk_509766 | rust_dataset.txt | 509,766 | 512 | Docker language support in Zed, including language servers, formatting, and debugging."
---
# Docker
Support for `Dockerfile` and `docker-compose.yaml` in Zed is provided by community-maintained extensions.
## Docker Compose
Docker `compose.yaml` language support in Zed is provided by the [Docker Compose extension... |
rust_dataset_chunk_509767 | rust_dataset.txt | 509,767 | 512 | /dexter)
- Debug Adapter: [ElixirLS](https://github.com/elixir-lsp/elixir-ls)
Furthermore, the extension provides support for [EEx](https://hexdocs.pm/eex/EEx.html) (Embedded Elixir) templates and [HEEx](https://hexdocs.pm/phoenix/components.html#heex) templates, a mix of HTML and EEx used by Phoenix LiveView applicat... |
rust_dataset_chunk_509768 | rust_dataset.txt | 509,768 | 512 | https://expert-lsp.org) is the official language server for Elixir. It is an amalgamation of ElixirLS, Next LS, and Lexical. The features it supports include: go-to-definition, go-to-references, hover docs, autocompletion, code actions, compiler diagnostics, and format on save.
Enable Expert by adding the following to... |
rust_dataset_chunk_509769 | rust_dataset.txt | 509,769 | 512 | -ls", "!lexical", "..."]
},
"HEEx": {
"language_servers": ["dexter", "!expert", "!elixir-ls", "!next-ls", "!lexical", "..."]
}
}
```
Dexter can accept initialization options.
The following example disables following `defdelegate` to the target function:
```json [settings]
"lsp": {
"dexter":... |
rust_dataset_chunk_509770 | rust_dataset.txt | 509,770 | 512 | credo": {
"enable": false
}
}
}
}
}
```
Next LS can also pass CLI options directly to Credo. The following example passes `--min-priority high` to it:
```json [settings]
"lsp": {
"next-ls": {
"initialization_options": {
"extensions": {
"credo": {... |
rust_dataset_chunk_509771 | rust_dataset.txt | 509,771 | 512 | ": "mix",
"arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
}
}
},
"HEEx": {
"enable_language_server": false,
"format_on_save": "on",
"formatter": {
"external": {
"command": "mix",
"arguments": ["format", "--stdin-filename", "... |
rust_dataset_chunk_509772 | rust_dataset.txt | 509,772 | 512 | ense/tree/HEAD/packages/tailwindcss-language-server#readme) in HEEx templates, add the following to your settings file:
```json [settings]
"lsp": {
"tailwindcss-language-server": {
"settings": {
"includeLanguages": {
"elixir": "html",
"heex": "html"
},
"experimen... |
rust_dataset_chunk_509773 | rust_dataset.txt | 509,773 | 512 | in your `settings.json`, e.g.:
```json [settings]
{
"lsp": {
"elm-language-server": {
"initialization_options": {
"disableElmLSDiagnostics": true,
"onlyUpdateDiagnosticsOnSave": false,
"elmReviewDiagnostics": "warning"
}
}
}
}
```
`elm-format`, `elm-review` and `elm` n... |
rust_dataset_chunk_509774 | rust_dataset.txt | 509,774 | 512 | .io/actions/wrap-with-abbreviation/) are supported:
- Wrapping individual lines: mark the repeating element with `*` (without a number), for example `ul>li*`, and each selected line is wrapped in its own element. `$` numbering works too: `ul>li.item$*>a`.
- Removing list markers: append the trim filter `|t`, for examp... |
rust_dataset_chunk_509775 | rust_dataset.txt | 509,775 | 512 | file_types": {
"Shell Script": [".env", ".env.*"]
},
```
To recognize other file names as Env files:
```json [settings]
"file_types": {
"Env": ["*.dotenv"]
},
```
## See also:
- [Zed Docs: Language Support: Shell Script](./sh.md)
--- FILE: zed/docs/src/languages/erlang.md ---
---
title: Erlang
descr... |
rust_dataset_chunk_509776 | rust_dataset.txt | 509,776 | 512 | /cmds/fish_indent.html), which is included with fish.
1. Ensure `fish_indent` is available in your path and check the version:
```sh
which fish_indent
fish_indent --version
```
2. Configure Zed to automatically format fish code with `fish_indent`:
```json [settings]
"languages": {
"Fish": {
"formatter":... |
rust_dataset_chunk_509777 | rust_dataset.txt | 509,777 | 512 | , including language servers, formatting, and debugging."
---
# Gleam
Gleam support is available through the [Gleam extension](https://github.com/gleam-lang/zed-gleam). To learn about Gleam, see the [docs](https://gleam.run/documentation/) or check out the [`stdlib` reference](https://hexdocs.pm/gleam_stdlib/). The G... |
rust_dataset_chunk_509778 | rust_dataset.txt | 509,778 | 512 | ://github.com/theHamsta/tree-sitter-glsl)
- Language Server: [nolanderc/glsl_analyzer](https://github.com/nolanderc/glsl_analyzer)
--- FILE: zed/docs/src/languages/go.md ---
---
title: Go
description: "Configure Go language support in Zed, including language servers, formatting, and debugging."
---
# Go
Go support ... |
rust_dataset_chunk_509779 | rust_dataset.txt | 509,779 | 512 | layHints documentation](https://github.com/golang/tools/blob/master/gopls/doc/inlayHints.md) for more information.
## Code Lens
Zed enables the `test` code lens for `gopls` by default. This shows "run test" and "run benchmark" links above `Test` and `Benchmark` functions in `*_test.go` files. To use them, enable the ... |
rust_dataset_chunk_509780 | rust_dataset.txt | 509,780 | 512 | the Delve mode to "test".
The "program" is still the package name, and you can use the "buildFlags" to do things like set tags, and the "args" to set args on the test binary. (See `go help testflags` for more information on doing that).
```json [debug]
[
{
"label": "Run integration tests",
"adapter": "Delve... |
rust_dataset_chunk_509781 | rust_dataset.txt | 509,781 | 512 | 0.0.1", "port": 53412 }
}
]
```
In such case Zed won't spawn a new instance of Delve, as it opts to use an existing one. The consequence of this is that _there will be no terminal_ in Zed; you have to interact with the Delve instance directly, as it handles stdin/stdout of the debuggee.
## Go Mod
- Tree-sitter: [c... |
rust_dataset_chunk_509782 | rust_dataset.txt | 509,782 | 512 | aintained [Groovy extension](https://github.com/valentinegb/zed-groovy).
Report issues to: [https://github.com/valentinegb/zed-groovy/issues](https://github.com/valentinegb/zed-groovy/issues)
- Tree-sitter: [murtaza64/tree-sitter-groovy](https://github.com/murtaza64/tree-sitter-groovy)
- Language Server: [GroovyLangua... |
rust_dataset_chunk_509783 | rust_dataset.txt | 509,783 | 512 | ls": {
"binary": {
"path": "static-ls",
"arguments": ["--experimentalFeatures"]
}
}
}
}
```
--- FILE: zed/docs/src/languages/helm.md ---
---
title: Helm
description: "Configure Helm language support in Zed, including language servers, formatting, and debugging."
---
# Helm
Support ... |
rust_dataset_chunk_509784 | rust_dataset.txt | 509,784 | 512 | ": "off",
}
}
```
You can still trigger formatting manually with {#kb editor::Format} or by opening the [command palette](../command-palette.md) ({#kb command_palette::Toggle}) and selecting "Format Document".
### LSP Formatting
To use the `vscode-html-language-server` language server auto-formatting instead o... |
rust_dataset_chunk_509785 | rust_dataset.txt | 509,785 | 512 | ```
## See also
- [CSS](./css.md)
- [JavaScript](./javascript.md)
- [TypeScript](./typescript.md)
--- FILE: zed/docs/src/languages/java.md ---
---
title: Java
description: "Configure Java language support in Zed, including language servers, formatting, and debugging."
---
# Java
Java language support in Zed is pr... |
rust_dataset_chunk_509786 | rust_dataset.txt | 509,786 | 512 | [Lombok](https://projectlombok.org/), the lombok-jar must be downloaded and registered as a Java-Agent when launching JDTLS. By default the extension automatically takes care of that, but in case you don't want that you can set the `lombok_support` configuration-option to `false`.
Here is a common `settings.json` inc... |
rust_dataset_chunk_509787 | rust_dataset.txt | 509,787 | 512 | ://zed.dev/docs/tasks) for more information.
## Advanced Configuration/JDTLS initialization Options
JDTLS provides many configuration options that can be passed via the `initialize` LSP-request. The extension will pass the JSON-object from `lsp.jdtls.settings.initialization_options` in your settings on to JDTLS. Plea... |
rust_dataset_chunk_509788 | rust_dataset.txt | 509,788 | 512 | "org.junit.jupiter.api.Assertions.*",
"org.junit.jupiter.api.Assumptions.*",
"org.junit.jupiter.api.DynamicContainer.*",
"org.junit.jupiter.api.DynamicTest.*",
],
"importOrder": ["java", "javax", "com", "org"],
},
... |
rust_dataset_chunk_509789 | rust_dataset.txt | 509,789 | 512 | -filepath", "{buffer_path}"]
}
}
}
}
}
```
## JSX
Zed supports JSX syntax highlighting out of the box.
In JSX strings, the [`tailwindcss-language-server`](./tailwindcss.md) is used to provide autocompletion for Tailwind CSS classes.
## JSDoc
Zed supports JSDoc syntax in JavaScript and TypeScrip... |
rust_dataset_chunk_509790 | rust_dataset.txt | 509,790 | 512 | {
"settings": {
"nodePath": ".yarn/sdks"
}
}
}
}
```
### Configure ESLint's `problems`:
You can configure ESLint's `problems` setting.
For example, here's how to set `problems.shortenToSingleLine`:
```json [settings]
{
"lsp": {
"eslint": {
"settings": {
"problems": {
... |
rust_dataset_chunk_509791 | rust_dataset.txt | 509,791 | 512 | ([^'\"]*)['\"]",
"\\.classList\\.contains\\(['\"]([^'\"]*)['\"]",
"\\.classList\\.replace\\(\\s*['\"]([^'\"]*)['\"]",
"\\.classList\\.replace\\([^,)]+,\\s*['\"]([^'\"]*)['\"]"
]
}
}
}
}
}
```
## Debugging
Zed supports debugging JavaScript code out of t... |
rust_dataset_chunk_509792 | rust_dataset.txt | 509,792 | 512 | request": "launch",
"file": "$ZED_WORKTREE_ROOT/index.html",
"webRoot": "$ZED_WORKTREE_ROOT",
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"]
}
]
```
## See also
- [Yarn documentation](./yarn.md) for a walkthrough of configuring your project to use Yarn.
- [TypeScript documenta... |
rust_dataset_chunk_509793 | rust_dataset.txt | 509,793 | 512 | ) where it will add trailing commas to files with a `jsonc` extension. JSONC files which have a `.json` extension are unaffected.
To workaround this behavior you can add the following to your `.prettierrc` configuration file:
```json
{
"overrides": [
{
"files": ["*.jsonc"],
"options": {
"par... |
rust_dataset_chunk_509794 | rust_dataset.txt | 509,794 | 512 | ed settings.json:
<!--
TBD: Add formatter (prettier) settings (autoformat, tab_size, etc)
-->
--- FILE: zed/docs/src/languages/jsonnet.md ---
---
title: Jsonnet
description: "Configure Jsonnet language support in Zed, including language servers, formatting, and debugging."
---
# Jsonnet
Jsonnet language support in... |
rust_dataset_chunk_509795 | rust_dataset.txt | 509,795 | 512 | to: [https://github.com/zed-extensions/kotlin/issues](https://github.com/zed-extensions/kotlin/issues)
- Tree-sitter: [fwcd/tree-sitter-kotlin](https://github.com/fwcd/tree-sitter-kotlin)
- Language Server: [kotlin/kotlin-lsp](https://github.com/kotlin/kotlin-lsp)
- Alternate Language Server: [fwcd/kotlin-language-se... |
rust_dataset_chunk_509796 | rust_dataset.txt | 509,796 | 512 | }
}
}
}
```
#### JAVA_HOME
To use a specific java installation, just specify the `JAVA_HOME` environment variable with:
```json [settings]
{
"lsp": {
"kotlin-language-server": {
"binary": {
"env": {
"JAVA_HOME": "/Users/whatever/Applications/Work/Android Studio.app/Contents/jbr/C... |
rust_dataset_chunk_509797 | rust_dataset.txt | 509,797 | 512 | date-luacats`, `../love2d`, etc). Alternatively you can create submodule(s) inside your project for each LuaCATS definition repo.
### LÖVE (Love2D) {#love2d}
To use [LÖVE (Love2D)](https://love2d.org/) in Zed, checkout [LuaCATS/love2d](https://github.com/LuaCATS/love2d) into a folder called `love2d-luacats` into the ... |
rust_dataset_chunk_509798 | rust_dataset.txt | 509,798 | 512 | ### Inlay Hints
To enable [Inlay Hints](../configuring-languages.md#inlay-hints) for LuaLS in Zed
1. Configure inlay hints in Settings ({#kb zed::OpenSettings}) under Languages > Lua, or add to your settings file:
```json [settings]
{
"languages": {
"Lua": {
"inlay_hints": {
"enabled": true,
... |
rust_dataset_chunk_509799 | rust_dataset.txt | 509,799 | 512 | {
"external": {
"command": "stylua",
"arguments": [
"--syntax=Lua54",
"--respect-ignores",
"--stdin-filepath",
"{buffer_path}",
"-"
]
}
}
}
}
}
```
You can specify various options to StyLua either on ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.