From b97c7456315f6f870fcd5eca6bca64d80d9172e9 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 20 Nov 2024 17:28:13 -0500 Subject: [PATCH] docs: Improve display of inline-diagnostics config sample Closes https://github.com/helix-editor/helix/issues/11591 --- book/src/editor.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/book/src/editor.md b/book/src/editor.md index 3edc38fc9..b5a5608af 100644 --- a/book/src/editor.md +++ b/book/src/editor.md @@ -452,7 +452,8 @@ fn main() { 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