Basic html highlighting + lsp support
This commit is contained in:
parent
5d8fe33bd2
commit
a48995c782
9 changed files with 143 additions and 0 deletions
|
@ -7,6 +7,7 @@ use std::{borrow::Cow, str, sync::Arc};
|
|||
mod c;
|
||||
mod elixir;
|
||||
mod go;
|
||||
mod html;
|
||||
mod installation;
|
||||
mod json;
|
||||
mod language_plugin;
|
||||
|
@ -96,6 +97,11 @@ pub async fn init(languages: Arc<LanguageRegistry>, _executor: Arc<Background>)
|
|||
tree_sitter_typescript::language_tsx(),
|
||||
Some(CachedLspAdapter::new(typescript::TypeScriptLspAdapter).await),
|
||||
),
|
||||
(
|
||||
"html",
|
||||
tree_sitter_html::language(),
|
||||
Some(CachedLspAdapter::new(html::HtmlLspAdapter).await),
|
||||
),
|
||||
] {
|
||||
languages.add(Arc::new(language(name, grammar, lsp_adapter)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue