Introduce support for C++

This commit is contained in:
Antonio Scandurra 2022-06-03 10:44:42 +02:00
parent 3ffbd56c65
commit d4da5135f4
12 changed files with 348 additions and 2 deletions

View file

@ -4,6 +4,7 @@ use rust_embed::RustEmbed;
use std::{borrow::Cow, str, sync::Arc};
mod c;
mod cpp;
mod installation;
mod json;
mod rust;
@ -22,6 +23,11 @@ pub fn build_language_registry(login_shell_env_loaded: Task<()>) -> LanguageRegi
tree_sitter_c::language(),
Some(Arc::new(c::CLspAdapter) as Arc<dyn LspAdapter>),
),
(
"cpp",
tree_sitter_cpp::language(),
Some(Arc::new(cpp::CppLspAdapter) as Arc<dyn LspAdapter>),
),
(
"json",
tree_sitter_json::language(),