aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/document.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 8d6144cf..814777f8 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -329,6 +329,11 @@ impl Document {
}
#[inline]
+ pub fn language_config(&self) -> Option<&LanguageConfiguration> {
+ self.language.as_deref()
+ }
+
+ #[inline]
/// Current document version, incremented at each change.
pub fn version(&self) -> i32 {
self.version