mirror of https://github.com/helix-editor/helix
Enable inline diagnostics by default
parent
3658e97c2b
commit
b09847a623
|
@ -467,13 +467,3 @@ fn main() {
|
|||
└─ no such value in this scope
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
The new diagnostic rendering is not yet enabled by default. As soon as end of line or inline diagnostics are enabled the old diagnostics rendering is automatically disabled. The recommended default setting are:
|
||||
|
||||
```toml
|
||||
[editor]
|
||||
end-of-line-diagnostics = "hint"
|
||||
[editor.inline-diagnostics]
|
||||
cursor-line = "warning" # show warnings and errors on the cursorline inline
|
||||
```
|
||||
|
|
|
@ -109,7 +109,7 @@ impl InlineDiagnosticsConfig {
|
|||
impl Default for InlineDiagnosticsConfig {
|
||||
fn default() -> Self {
|
||||
InlineDiagnosticsConfig {
|
||||
cursor_line: DiagnosticFilter::Disable,
|
||||
cursor_line: DiagnosticFilter::Enable(Severity::Warning),
|
||||
other_lines: DiagnosticFilter::Disable,
|
||||
min_diagnostic_width: 40,
|
||||
prefix_len: 1,
|
||||
|
|
|
@ -1032,7 +1032,7 @@ impl Default for Config {
|
|||
indent_heuristic: IndentationHeuristic::default(),
|
||||
jump_label_alphabet: ('a'..='z').collect(),
|
||||
inline_diagnostics: InlineDiagnosticsConfig::default(),
|
||||
end_of_line_diagnostics: DiagnosticFilter::Disable,
|
||||
end_of_line_diagnostics: DiagnosticFilter::Enable(Severity::Hint),
|
||||
clipboard_provider: ClipboardProvider::default(),
|
||||
editor_config: true,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue