summaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorNathan Vegdahl2021-06-13 23:35:05 +0000
committerNathan Vegdahl2021-06-15 01:32:23 +0000
commit8648e483f772b4791e5618c4c8b3db8926ae356d (patch)
tree6d2b1cb23adca37576c90efb315493747f858b26 /helix-view
parent5ca043c17a28323bebe7517f9bcdea8a293bcfab (diff)
Render indent-style status in status line.
Also cleaned up the status line code a little.
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/document.rs4
1 files changed, 3 insertions, 1 deletions
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<ViewId, Selection>,
- pub(crate) indent_style: IndentStyle,
path: Option<PathBuf>,
@@ -40,6 +39,9 @@ pub struct Document {
pub mode: Mode,
pub restore_cursor: bool,
+ /// Current indent style.
+ pub indent_style: IndentStyle,
+
syntax: Option<Syntax>,
// /// Corresponding language scope name. Usually `source.<lang>`.
pub(crate) language: Option<Arc<LanguageConfiguration>>,