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
|`advanced.plugin.cursor_update`|`string`|`'on_hold'`| When to update cursor position: `'on_move'`, `'on_hold'`, or `'none'`. See [Cursor Update Mode](#cursor-update-mode)|
404
408
|`advanced.plugin.match_in_mappings`|`boolean`|`true`| Whether to match against file extensions in mappings |
409
+
|`advanced.plugin.debounce.delay`|`integer`|`50`| Delay in milliseconds before sending the first update. Allows events received in quick succession (e.g., buffer switches) to settle before sending data. Set to 0 to disable. |
410
+
|`advanced.plugin.debounce.interval`|`integer`|`750`| Minimum interval in milliseconds between updates. Prevents flooding the server during rapid cursor movement. Set to 0 to disable. |
Copy file name to clipboardExpand all lines: lua/cord/api/config/init.lua
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,11 @@ local logger = require 'cord.api.log'
89
89
---@fieldautocmds? boolean Whether to enable autocmds
90
90
---@fieldcursor_update? string Cursor update mode
91
91
---@fieldmatch_in_mappings? boolean Whether to match against file extensions in mappings
92
+
---@fielddebounce? CordAdvancedDebounceConfig Debounce/throttle configuration for activity updates
93
+
94
+
---@classCordAdvancedDebounceConfig
95
+
---@fielddelay? integer Delay in milliseconds before sending the first update. Allows events received in quick succession (e.g., buffer switches) to settle before sending data. Set to 0 to disable.
96
+
---@fieldinterval? integer Minimum interval in milliseconds between updates. Prevents flooding the server during rapid cursor movement. Set to 0 to disable.
92
97
93
98
---@classCordAdvancedServerConfig
94
99
---@fieldupdate? 'fetch'|'install'|'build'|'none'|string How to acquire the server executable: 'fetch' or 'install' or 'build' or 'none'
@@ -130,10 +135,10 @@ local logger = require 'cord.api.log'
0 commit comments