Skip to content

Commit dfe6c6f

Browse files
add documentation for Zed editor setup (#318)
1 parent 59b25cf commit dfe6c6f

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1818

1919
## [Unreleased]
2020

21+
### Added
22+
23+
- Added documentation for Zed extension
24+
2125
## [5.2.3]
2226

2327
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ The package provides pre-built wheels with the Rust-based LSP server compiled fo
106106
The Django Language Server works with any editor that supports the Language Server Protocol (LSP). We currently have setup instructions for:
107107

108108
- [Neovim](clients/nvim/README.md)
109+
- [Zed](docs/clients/zed.md)
109110

110111
Got it working in your editor? [Help us add setup instructions!](#testing-and-documenting-editor-setup)
111112

docs/clients/zed.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Zed
3+
---
4+
5+
# Zed
6+
7+
The Django Language Server can be used with [Zed](https://zed.dev) via the [zed-django](https://github.com/joshuadavidthomas/zed-django) extension.
8+
9+
## Installation
10+
11+
> [!NOTE]
12+
> The extension is currently awaiting approval for the official Zed extension store.
13+
>
14+
> In the meantime, you can install it as a dev extension:
15+
>
16+
> 1. Clone the [zed-django](https://github.com/joshuadavidthomas/zed-django) repository locally
17+
> 2. Open the Extensions panel (`zed: extensions` in the command palette or `ctrl-shift-x`/`cmd-shift-x`)
18+
> 3. Click "Install Dev Extension" in the upper right corner and select the cloned repo folder
19+
20+
Install the extension from the Zed extensions directory:
21+
22+
1. Open the Extensions panel (`zed: extensions` in the command palette or `ctrl-shift-x`/`cmd-shift-x`)
23+
2. Search for "Django"
24+
3. Click "Install"
25+
26+
The extension uses the Django Language Server by default and will automatically download it if not already installed.
27+
28+
## Documentation
29+
30+
For configuration, file associations, and advanced usage, see the [zed-django repository](https://github.com/joshuadavidthomas/zed-django).

docs/hooks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def replace_link(match):
4545
if path.startswith(("#", "http://", "https://", "./assets/", "assets/")):
4646
return match.group(0)
4747

48+
if path.startswith("docs/"):
49+
return f"[{text}]({path.removeprefix('docs/')})"
50+
4851
if "clients/nvim/README.md" in path:
4952
return f"[{text}](clients/neovim.md)"
5053

0 commit comments

Comments
 (0)