@@ -555,7 +555,9 @@ impl LanguageConfiguration {
555#[serde(default, rename_all = "kebab-case", deny_unknown_fields)]
555#[serde(default, rename_all = "kebab-case", deny_unknown_fields)]
556pub struct SoftWrap {
556pub struct SoftWrap {
557 /// Soft wrap lines that exceed viewport width. Default to off
557 /// Soft wrap lines that exceed viewport width. Default to off
558+ // NOTE: Option on purpose because the struct is shared between language config and global config.
559+ // By default the option is None so that the language config falls back to the global config unless explicitly set.
558− pub enable: bool,
560+ pub enable: Option<bool>,
559 /// Maximum space left free at the end of the line.
561 /// Maximum space left free at the end of the line.
560 /// This space is used to wrap text at word boundaries. If that is not possible within this limit
562 /// This space is used to wrap text at word boundaries. If that is not possible within this limit
561 /// the word is simply split at the end of the line.
563 /// the word is simply split at the end of the line.