From fcbac485f885d90f6341d7acaf75157a01d81892 Mon Sep 17 00:00:00 2001 From: Connortsui20 Date: Tue, 8 Aug 2023 08:51:34 -0400 Subject: Show whether file readonly in statusline (#7740) --- helix-view/src/editor.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'helix-view/src/editor.rs') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 2152ff9b..113102b6 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -421,6 +421,7 @@ impl Default for StatusLineConfig { E::Mode, E::Spinner, E::FileName, + E::ReadOnlyIndicator, E::FileModificationIndicator, ], center: vec![], @@ -473,6 +474,9 @@ pub enum StatusLineElement { // The file modification indicator FileModificationIndicator, + /// An indicator that shows `"[readonly]"` when a file cannot be written + ReadOnlyIndicator, + /// The file encoding FileEncoding, -- cgit v1.2.3-70-g09d2