zed-discord-presence/README.md

34 lines
1.1 KiB
Markdown
Raw Normal View History

2024-07-19 00:05:53 +02:00
**Zed discord presence** is an extension for [Zed](https://zed.dev) that adds support for [Discord Rich Presence](https://discord.com/developers/docs/rich-presence/how-to) using LSP
2024-07-19 23:55:44 +02:00
Using LSP is a workaround for now (yeah, it's a bit hacky) but once Zed has proper extension support, I'll rewrite it.
### Requirements
[rust](https://rust-lang.org) is required for installing this extension. \
2024-07-19 23:55:44 +02:00
The easiest way to get [rust](https://rust-lang.org) is by using [rustup](https://rustup.rs)
2024-07-19 19:54:46 +02:00
### How to install?
2024-07-19 00:05:53 +02:00
1. Clone this repository
2. <kbd>CTRL</kbd> + <kbd>SHIFT</kbd> + <kbd>P</kbd> and select <kbd>zed: install dev extension</kbd>
3. Choose the directory where you cloned this repository
4. Enjoy :)
## How to configure?
You can configure state, details and git integration by changing Discord Presence LSP settings. This can be done in <kbd>zed: open settings</kbd> with following configuration:
```json
{
"lsp": {
"discord_presence": {
"initialization_options": {
"state": "Working on {filename}",
"details": "In {workspace}",
"git_integration": true
}
}
}
}
```