vim: Enable % to jump between tags (#20536)

Closes #12986

Release Notes:

- Enable `%` to jump between pairs of tags

---------

Co-authored-by: Harrison <hrouillard@sfi.com.au>
This commit is contained in:
hrou0003
2024-11-14 12:41:53 -07:00
committed by GitHub
co-authored by Harrison
parent 189a034e71
commit f0882f44a7
8 changed files with 159 additions and 10 deletions
@@ -234,7 +234,16 @@ impl EditorLspTestContext {
..Default::default()
},
Some(tree_sitter_html::language()),
);
)
.with_queries(LanguageQueries {
brackets: Some(Cow::from(indoc! {r#"
("<" @open "/>" @close)
("</" @open ">" @close)
("<" @open ">" @close)
("\"" @open "\"" @close)"#})),
..Default::default()
})
.expect("Could not parse queries");
Self::new(language, Default::default(), cx).await
}