diff --git a/crates/settings/src/settings_content/project.rs b/crates/settings/src/settings_content/project.rs index 56c3ff1c78ead6b113799c1c11552e0732b62345..e7a3798ebfa827cd287255f464f9e35bddd619f4 100644 --- a/crates/settings/src/settings_content/project.rs +++ b/crates/settings/src/settings_content/project.rs @@ -26,6 +26,7 @@ pub struct ProjectSettingsContent { /// The following settings can be overridden for specific language servers: /// - initialization_options /// + /// /// To override settings for a language, add an entry for that language server's /// name to the lsp value. /// Default: null @@ -108,7 +109,19 @@ pub struct WorktreeSettingsContent { #[serde(rename_all = "snake_case")] pub struct LspSettings { pub binary: Option, + /// Options passed to the language server at startup. + /// + /// Ref: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initialize + /// + /// Consult the documentation for the specific language server to see what settings + /// are supported. pub initialization_options: Option, + /// Language server settings. + /// + /// Ref: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_configuration + /// + /// Consult the documentation for the specific LSP to see what settings + /// are supported. pub settings: Option, /// If the server supports sending tasks over LSP extensions, /// this setting can be used to enable or disable them in Zed.