You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,38 +26,166 @@ Don't forget to give at least a ⭐ if you like this project :D
26
26
27
27
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:
28
28
29
-
```json
29
+
### Application ID
30
+
31
+
The `application_id` is required for the rich presence to work. It should be kept as is unless you have a specific reason to change it.
32
+
33
+
```jsonc
34
+
"application_id":"1263505205522337886"
35
+
```
36
+
37
+
### Base Icons URL
38
+
39
+
The `base_icons_url` is the base URL for all language icons. This URL points to the location where the icons are stored.
The `state` option allows you to set the state message displayed in Discord. The placeholder `{filename}` will be replaced with the current file name.
48
+
49
+
```jsonc
50
+
"state":"Working on {filename}"
51
+
```
52
+
53
+
### Details
54
+
55
+
The `details` option allows you to set the details message displayed in Discord. The placeholder `{workspace}` will be replaced with the current workspace name.
56
+
57
+
```jsonc
58
+
"details":"In {workspace}"
59
+
```
60
+
61
+
### Large Image
62
+
63
+
The `large_image` option specifies the URL for the large image displayed in Discord. The placeholders `{base_icons_url}` and `{language}` will be replaced accordingly.
64
+
65
+
```jsonc
66
+
"large_image":"{base_icons_url}/{language}.png"
67
+
```
68
+
69
+
### Large Text
70
+
71
+
The `large_text` option specifies the text displayed when hovering over the large image. The `:u` modifier capitalizes the first letter of the language name.
72
+
73
+
```jsonc
74
+
"large_text":"{language:u}"
75
+
```
76
+
77
+
### Small Image
78
+
79
+
The `small_image` option specifies the URL for the small image displayed in Discord.
80
+
81
+
```jsonc
82
+
"small_image":"{base_icons_url}/zed.png"
83
+
```
84
+
85
+
### Small Text
86
+
87
+
The `small_text` option specifies the text displayed when hovering over the small image.
88
+
89
+
```jsonc
90
+
"small_text":"Zed"
91
+
```
92
+
93
+
### Idle Settings
94
+
95
+
The `idle` settings configure the behavior when you are inactive.
96
+
97
+
The `timeout` specifies the idle timeout in seconds (300 seconds = 5 minutes).
98
+
99
+
The `action` determines what happens when you go idle:
100
+
101
+
-`change_activity` changes the activity to idle with the specified details
102
+
-`clear_activity` hides the activity
103
+
104
+
The `state`, `details`, `large_image`, `large_text`, `small_image`, and `small_text` options specify the messages and images to display when idle.
105
+
106
+
```jsonc
107
+
"idle": {
108
+
"timeout":300,
109
+
"action":"change_activity",
110
+
"state":"Idling",
111
+
"details":"In Zed",
112
+
"large_image":"{base_icons_url}/zed.png",
113
+
"large_text":"Zed",
114
+
"small_image":"{base_icons_url}/idle.png",
115
+
"small_text":"Idle"
116
+
}
117
+
```
118
+
119
+
### Rules
120
+
121
+
The `rules` option allows you to disable presence in specific workspaces. The `mode` can be set to `blacklist`
122
+
or `whitelist`, and the `paths` array should contain the absolute paths to apply the rule to.
123
+
124
+
```jsonc
125
+
"rules": {
126
+
"mode":"blacklist",
127
+
"paths": ["absolute path"]
128
+
}
129
+
```
130
+
131
+
### Git Integration
132
+
133
+
The `git_integration` option enables or disables Git integration. When enabled, the extension
134
+
will display a button to open the Git repository.
135
+
136
+
```jsonc
137
+
"git_integration":true
138
+
```
139
+
140
+
### Example Configuration
141
+
142
+
```jsonc
30
143
{
31
144
"lsp": {
32
145
"discord_presence": {
33
146
"initialization_options": {
34
-
// application id for the rich presence (required, keep it if you don't know what you're doing)
35
-
"application_id": "1263505205522337886"
36
-
// Base url for all language icons
147
+
//Application ID for the rich presence (don't touch it unless you know what you're doing)
0 commit comments