aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 042f5bdb..50da3dde 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -414,7 +414,12 @@ impl Default for StatusLineConfig {
use StatusLineElement as E;
Self {
- left: vec![E::Mode, E::Spinner, E::FileName],
+ left: vec![
+ E::Mode,
+ E::Spinner,
+ E::FileName,
+ E::FileModificationIndicator,
+ ],
center: vec![],
right: vec![E::Diagnostics, E::Selections, E::Position, E::FileEncoding],
separator: String::from("│"),
@@ -456,6 +461,9 @@ pub enum StatusLineElement {
/// The relative file path, including a dirty flag if it's unsaved
FileName,
+ // The file modification indicator
+ FileModificationIndicator,
+
/// The file encoding
FileEncoding,