aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorMatouš Dzivjak2021-12-25 15:10:46 +0000
committerGitHub2021-12-25 15:10:46 +0000
commit4b0b1a5657b78693efe609647360de30264fcc92 (patch)
tree2f8481ebc7065d8dcc775f9f32bde0f8a0ed8f3f /helix-core
parentec878e40114d8992c3ed1221f77271a4508d3cde (diff)
feat(ui): file encoding in statusline (#1355)
* feat(ui): file encoding in statusline Display file encoding in statusline if the encoding isn't UTF-8. * Re-export encoding_rs from core From there it can be imported by other mods that rely on it.
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/Cargo.toml1
-rw-r--r--helix-core/src/lib.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/helix-core/Cargo.toml b/helix-core/Cargo.toml
index 839b07ac..3d7fe866 100644
--- a/helix-core/Cargo.toml
+++ b/helix-core/Cargo.toml
@@ -35,6 +35,7 @@ toml = "0.5"
similar = "2.1"
etcetera = "0.3"
+encoding_rs = "0.8"
chrono = { version = "0.4", default-features = false, features = ["alloc", "std"] }
diff --git a/helix-core/src/lib.rs b/helix-core/src/lib.rs
index 92a59f31..1c78e7c0 100644
--- a/helix-core/src/lib.rs
+++ b/helix-core/src/lib.rs
@@ -1,3 +1,5 @@
+pub use encoding_rs as encoding;
+
pub mod auto_pairs;
pub mod chars;
pub mod comment;