Skip to content

Commit 5176f15

Browse files
gdamoreWebFreak001
authored andcommitted
add Zed editor guide
1 parent 8ca8e33 commit 5176f15

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

editor-zed.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Using serve-d with [Zed][1]
2+
3+
---
4+
5+
Support for D including serve-d is included with the Zed "D" plugin.
6+
7+
This plugin can be installed using the "zed: extensions" command
8+
or the `Zed ... Extensions ...` menu item.
9+
10+
The plugin will automatically download the most recent release of serve-d.
11+
12+
This also makes use of a [Tree-sitter grammar for D][2] so syntax highlighting
13+
and related functionality is very fast, and of serve-d for other advanced
14+
capabilities.
15+
16+
Various settings for serve-d can be made in either your global personal
17+
settings, or in project specific settings.
18+
19+
The settings object is a JSON file, and serve-d can be added under the
20+
"serve-d" member of the "lsp" top-level settings.
21+
The binary can also be relocated if a custom binary should be used instead.
22+
23+
An example configuration:
24+
25+
```json
26+
"lsp": {
27+
"serve-d": {
28+
"settings": {
29+
"d": {
30+
"enableFormatting": false,
31+
"manyProjectsThreshold": 20
32+
},
33+
"dscanner": {
34+
"ignoredKeys": ["dscanner.style.long_line"]
35+
}
36+
},
37+
"binary": {
38+
"path": "/Users/garrett.damore/Projects/serve-d/serve-d"
39+
}
40+
}
41+
}
42+
```
43+
44+
[1]: https://zed.dev "Zed Editor Web Site""
45+
[2]: https://github.com/gdamore/tree-sitter-d/ "Tree-sitter Grammar for D"

0 commit comments

Comments
 (0)