diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index e9c87f7329f2..cab4c1761c20 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -463,6 +463,7 @@ where unit: String::from(" "), }), indent_query: OnceCell::new(), + textobject_query: OnceCell::new(), }], }); @@ -473,7 +474,7 @@ where let language_config = loader.language_config_for_scope("source.rust").unwrap(); let highlight_config = language_config.highlight_config(&[]).unwrap(); - let syntax = Syntax::new(&doc, highlight_config.clone(), "rust"); + let syntax = Syntax::new(&doc, highlight_config.clone()); let text = doc.slice(..); let tab_width = 4;