Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Add docs for `hover_popover_delay` and update hover delay (#30620)
Smit Barmase7eb226b3fcd4
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex f1c9e70a5b1..c241da9a965 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -113,8 +113,8 @@// Whether to show the informational hover box when moving the mouse// over symbols in the editor."hover_popover_enabled": true,- // Time to wait before showing the informational hover box- "hover_popover_delay": 350,+ // Time to wait in milliseconds before showing the informational hover box.+ "hover_popover_delay": 300,// Whether to confirm before quitting Zed."confirm_quit": false,// Whether to restore last closed project when fresh Zed instance is opened.diff --git a/crates/editor/src/editor_settings.rs b/crates/editor/src/editor_settings.rsindex ca3c5121ef3..d9c0d1447e4 100644--- a/crates/editor/src/editor_settings.rs+++ b/crates/editor/src/editor_settings.rs@@ -369,9 +369,9 @@ pub struct EditorSettingsContent {////// Default: truepub hover_popover_enabled: Option<bool>,- /// Time to wait before showing the informational hover box+ /// Time to wait in milliseconds before showing the informational hover box.///- /// Default: 350+ /// Default: 300pub hover_popover_delay: Option<u64>,/// Toolbar related settingspub toolbar: Option<ToolbarContent>,diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.mdindex 92ad474dfdd..68aabc03717 100644--- a/docs/src/configuring-zed.md+++ b/docs/src/configuring-zed.md@@ -1741,6 +1741,16 @@ Example:`boolean` values+## Hover Popover Delay++- Description: Time to wait in milliseconds before showing the informational hover box.+- Setting: `hover_popover_delay`+- Default: `300`++**Options**++`integer` values representing milliseconds+## Icon Theme- Description: The icon theme setting can be specified in two forms - either as the name of an icon theme or as an object containing the `mode`, `dark`, and `light` icon themes for files/folders inside Zed.