mirror of https://github.com/helix-editor/helix
refactor: change `w_diagnostics` to `workspace_diagnostics`
parent
601fcb1aea
commit
a9d3c65d61
|
@ -304,7 +304,7 @@ where
|
|||
write(context, " W ".into(), None);
|
||||
}
|
||||
|
||||
for sev in &context.editor.config().statusline.w_diagnostics {
|
||||
for sev in &context.editor.config().statusline.workspace_diagnostics {
|
||||
match sev {
|
||||
Severity::Hint if hints > 0 => {
|
||||
write(
|
||||
|
|
|
@ -498,7 +498,7 @@ pub struct StatusLineConfig {
|
|||
pub separator: String,
|
||||
pub mode: ModeConfig,
|
||||
pub diagnostics: Vec<Severity>,
|
||||
pub w_diagnostics: Vec<Severity>,
|
||||
pub workspace_diagnostics: Vec<Severity>,
|
||||
}
|
||||
|
||||
impl Default for StatusLineConfig {
|
||||
|
@ -524,7 +524,7 @@ impl Default for StatusLineConfig {
|
|||
separator: String::from("│"),
|
||||
mode: ModeConfig::default(),
|
||||
diagnostics: vec![Severity::Warning, Severity::Error],
|
||||
w_diagnostics: vec![Severity::Warning, Severity::Error],
|
||||
workspace_diagnostics: vec![Severity::Warning, Severity::Error],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue