Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | helix-core/src/syntax.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index a059fb7f..f7e15225 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -1345,6 +1345,13 @@ impl Syntax { result } + /// Gets the [LanguageConfiguration] for a given injection layer. + pub fn layer_config(&self, layer_id: LayerId) -> &Arc<LanguageConfiguration> { + let language_id = self.layers[layer_id].config.language_id; + + &self.loader.language_configs[language_id] + } + // Commenting // comment_strings_for_pos // is_commented |