zed-discord-presence/README.md
Jozef Steinhübl ad5333a502
feat: add initialization options (#6)
* feat: add initialization options

* docs: add section about how to configure

* refactor: clippy
2024-08-03 21:36:23 +02:00

1.1 KiB

Zed discord presence is an extension for Zed that adds support for Discord Rich Presence using LSP

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 is required for installing this extension.
The easiest way to get rust is by using rustup

How to install?

  1. Clone this repository
  2. CTRL + SHIFT + P and select zed: install dev extension
  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 zed: open settings with following configuration:

{
  "lsp": {
    "discord_presence": {
      "initialization_options": {
        "state": "Working on {filename}",
        "details": "In {workspace}",
        "git_integration": true
      }
    }
  }
}