diff options
author | Gokul Soumya | 2022-07-05 03:46:47 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-07-06 11:06:46 +0000 |
commit | 2c37e25cb552f1b64ad6815bb03c40d6d5aacb24 (patch) | |
tree | c5366a945ec22b30bcc4fe0686b2b3d4f40f0fa6 /helix-term/src/commands | |
parent | c4e022971df6179647206592b6d7e452c12161d0 (diff) |
Display diagnostic text before code in picker
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r-- | helix-term/src/commands/lsp.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index 2378ef16..81e16b22 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -132,11 +132,12 @@ impl ui::menu::Item for PickerDiagnostic { .into_owned(); Spans::from(vec![ - Span::styled(truncated_path, style), - Span::raw(" - "), - Span::styled(code, style.add_modifier(Modifier::BOLD)), + Span::raw(truncated_path), Span::raw(": "), Span::styled(&self.diag.message, style), + Span::raw(" ("), + Span::styled(code, style.add_modifier(Modifier::BOLD)), + Span::raw(")"), ]) } } |