From 8648e483f772b4791e5618c4c8b3db8926ae356d Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Sun, 13 Jun 2021 16:35:05 -0700 Subject: Render indent-style status in status line. Also cleaned up the status line code a little. --- helix-view/src/document.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helix-view/src') diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 86dee16f..d5ab1425 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -32,7 +32,6 @@ pub struct Document { pub(crate) id: DocumentId, text: Rope, pub(crate) selections: HashMap, - pub(crate) indent_style: IndentStyle, path: Option, @@ -40,6 +39,9 @@ pub struct Document { pub mode: Mode, pub restore_cursor: bool, + /// Current indent style. + pub indent_style: IndentStyle, + syntax: Option, // /// Corresponding language scope name. Usually `source.`. pub(crate) language: Option>, -- cgit v1.2.3-70-g09d2