Skip to content

Commit

Permalink
docs: update the guides
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Jan 3, 2025
1 parent 651e177 commit 3a00f41
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions wiki/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ require('cord').setup {
update = 'fetch',
pipe_path = nil,
executable_path = nil,
timeout = 60000,
timeout = 300000,
},
discord = {
reconnect = {
Expand Down Expand Up @@ -164,7 +164,7 @@ require('cord').setup {
| `advanced.server.update` | `string` | `'fetch'` | Default way to acquire the server executable either if the executable is not found or a manual update is requested: `'fetch'` - fetch from GitHub, `'build'` - build from source, `'none'` - no-op |
| `advanced.server.pipe_path` | `string \| nil` | `nil` | Custom IPC pipe path |
| `advanced.server.executable_path` | `string \| nil` | `nil` | Custom server executable path |
| `advanced.server.timeout` | `number` | `60000` | Server shutdown timeout (ms) |
| `advanced.server.timeout` | `number` | `300000` | Server shutdown timeout (ms) |
| `advanced.discord.reconnect.enabled` | `boolean` | `true` | Whether reconnection is enabled. Has minimal impact on performance. |
| `advanced.discord.reconnect.interval` | `number` | `5000` | Reconnection interval in milliseconds, 0 to disable |

Expand Down Expand Up @@ -335,14 +335,15 @@ The `ActivityManager` contains useful methods:

### Activity Options

| Parameter | Type | Description |
| ------------ | -------- | ---------------------------------------------------------------------------------------------------- |
| `type` | `number` | One of 'playing', 'listening', 'watching' |
| `state` | `string` | The user's current state (e.g., "Editing a file"). |
| `details` | `string` | Detailed information about what the user is doing. |
| `timestamps` | `table` | Contains `start` and `end` timestamps for the activity. |
| `assets` | `table` | Defines images and tooltips, including `large_image`, `large_text`, `small_image`, and `small_text`. |
| `buttons` | `array` | Array of objects, each with `label` and `url`, defining interactive buttons in the presence. |
| Parameter | Type | Description |
| ------------ | --------- | ---------------------------------------------------------------------------------------------------- |
| `type` | `number` | One of 'playing', 'listening', 'watching' |
| `state` | `string` | The user's current state (e.g., "Editing a file"). |
| `details` | `string` | Detailed information about what the user is doing. |
| `timestamps` | `table` | Contains `start` and `end` timestamps for the activity. |
| `assets` | `table` | Defines images and tooltips, including `large_image`, `large_text`, `small_image`, and `small_text`. |
| `buttons` | `array` | Array of objects, each with `label` and `url`, defining interactive buttons in the presence. |
| `is_idle` | `boolean` | Whether the activity should be considered as idle. |

### Useful Functions

Expand Down
2 changes: 1 addition & 1 deletion wiki/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The plugin in question, **cord.nvim**, has been rewritten from scratch with a ne

- A new smart idle system has been implemented - you're only shown as idle when all your Neovim instances are actually idle. When an instance goes idle, it automatically switches back to show your most recent active one.

- The plugin is now event-driven, meaning changes are reflected instantly without any polling delays. When all instances disconnect, the server, as well as the connection to Discord, stay alive for a minute (configurable) before shutting down, which helps to avoid rate limiting issues.
- The plugin is now event-driven, meaning changes are reflected instantly without any polling delays. When all instances disconnect, the server, as well as the connection to Discord, stay alive for a little while (configurable) before shutting down, which helps to avoid rate limiting issues.

- A new `variables` option allows users to define custom variables, including functions, for dynamic text templates. This enhances the flexibility and customization of the Rich Presence display.

Expand Down

0 comments on commit 3a00f41

Please sign in to comment.