Precompile plugins depending on target triple

This commit is contained in:
Isaac Clayton 2022-07-14 13:23:04 +02:00
parent 4a5b8fd2e6
commit 80b45ef93b
6 changed files with 50 additions and 27 deletions

View file

@ -3,6 +3,7 @@ pub use language::*;
use lazy_static::lazy_static;
use rust_embed::RustEmbed;
use std::{borrow::Cow, str, sync::Arc};
// use util::ResultExt;
mod c;
mod go;
@ -54,6 +55,11 @@ pub async fn init(languages: Arc<LanguageRegistry>, _executor: Arc<Background>)
"json",
tree_sitter_json::language(),
Some(CachedLspAdapter::new(json::JsonLspAdapter).await),
// TODO: switch back to plugin
// match language_plugin::new_json(executor).await.log_err() {
// Some(lang) => Some(CachedLspAdapter::new(lang).await),
// None => None,
// },
),
(
"markdown",