vim: Add HTML tag support for #4503 (#8175)

a simple code for html tag support, I've only done the basics, and if
it's okay, I'll optimize and organize the code, and adapt other parts
like `is_multiline`, `always_expands_both_ways`, `target_visual_mode`,
etc

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Hans 2024-02-27 13:48:19 +08:00 committed by GitHub
parent a42b987929
commit f3fa3b910a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 123 additions and 6 deletions

View file

@ -31,6 +31,11 @@ impl VimTestContext {
Self::new_with_lsp(lsp, enabled)
}
pub async fn new_html(cx: &mut gpui::TestAppContext) -> VimTestContext {
Self::init(cx);
Self::new_with_lsp(EditorLspTestContext::new_html(cx).await, true)
}
pub async fn new_typescript(cx: &mut gpui::TestAppContext) -> VimTestContext {
Self::init(cx);
Self::new_with_lsp(