Skip to content

Commit

Permalink
add Zed editor guide
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore authored and WebFreak001 committed May 28, 2024
1 parent 8ca8e33 commit 5176f15
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions editor-zed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Using serve-d with [Zed][1]

---

Support for D including serve-d is included with the Zed "D" plugin.

This plugin can be installed using the "zed: extensions" command
or the `Zed ... Extensions ...` menu item.

The plugin will automatically download the most recent release of serve-d.

This also makes use of a [Tree-sitter grammar for D][2] so syntax highlighting
and related functionality is very fast, and of serve-d for other advanced
capabilities.

Various settings for serve-d can be made in either your global personal
settings, or in project specific settings.

The settings object is a JSON file, and serve-d can be added under the
"serve-d" member of the "lsp" top-level settings.
The binary can also be relocated if a custom binary should be used instead.

An example configuration:

```json
"lsp": {
"serve-d": {
"settings": {
"d": {
"enableFormatting": false,
"manyProjectsThreshold": 20
},
"dscanner": {
"ignoredKeys": ["dscanner.style.long_line"]
}
},
"binary": {
"path": "/Users/garrett.damore/Projects/serve-d/serve-d"
}
}
}
```

[1]: https://zed.dev "Zed Editor Web Site""
[2]: https://github.com/gdamore/tree-sitter-d/ "Tree-sitter Grammar for D"

0 comments on commit 5176f15

Please sign in to comment.