PlainText language: Default to SoftWrap::EditorWidth (#14331)

- Remove wrap guide / vertical ruler in untitled buffers
- Fixes https://github.com/zed-industries/zed/issues/12473
This commit is contained in:
Peter Tripp 2024-07-12 15:10:59 +00:00 committed by GitHub
parent 607ad6de3c
commit 106e0623dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,7 @@ lazy_static! {
pub static ref PLAIN_TEXT: Arc<Language> = Arc::new(Language::new(
LanguageConfig {
name: "Plain Text".into(),
soft_wrap: Some(SoftWrap::PreferredLineLength),
soft_wrap: Some(SoftWrap::EditorWidth),
..Default::default()
},
None,