Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/picker/handlers.rs')
| -rw-r--r-- | helix-term/src/ui/picker/handlers.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/helix-term/src/ui/picker/handlers.rs b/helix-term/src/ui/picker/handlers.rs index 4896ccbc..ac34e893 100644 --- a/helix-term/src/ui/picker/handlers.rs +++ b/helix-term/src/ui/picker/handlers.rs @@ -82,7 +82,12 @@ impl<T: 'static + Send + Sync, D: 'static + Send + Sync> AsyncHook let Some(syntax) = language_config .highlight_config(&loader.load().scopes()) .and_then(|highlight_config| { - helix_core::Syntax::new(text.slice(..), highlight_config, loader) + helix_core::Syntax::new(text.slice(..), highlight_config, |injection| { + loader + .load() + .language_configuration_for_injection_string(injection) + .and_then(|config| config.get_highlight_config()) + }) }) else { log::info!("highlighting picker item failed"); |