aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
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>>,