Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/editor.rs')
| -rw-r--r-- | helix-view/src/editor.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index bc811b88..cb9586e7 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -29,7 +29,7 @@ use std::{ collections::{BTreeMap, HashMap, HashSet}, fs, io::{self, stdin}, - num::NonZeroUsize, + num::{NonZeroU8, NonZeroUsize}, path::{Path, PathBuf}, pin::Pin, sync::Arc, @@ -459,6 +459,9 @@ pub struct LspConfig { pub display_signature_help_docs: bool, /// Display inlay hints pub display_inlay_hints: bool, + /// Maximum displayed length of inlay hints (excluding the added trailing `…`). + /// If it's `None`, there's no limit + pub inlay_hints_length_limit: Option<NonZeroU8>, /// Display document color swatches pub display_color_swatches: bool, /// Whether to enable snippet support @@ -476,6 +479,7 @@ impl Default for LspConfig { auto_signature_help: true, display_signature_help_docs: true, display_inlay_hints: false, + inlay_hints_length_limit: None, snippets: true, goto_reference_include_declaration: true, display_color_swatches: true, |