Add Prisma language support (#7267)

Fixes #4832

Adds tree-sitter grammar and LSP adapter for Prisma



https://github.com/zed-industries/zed/assets/16297930/0f288ab1-ce5c-4e31-ad7f-6bb9655863c1
This commit is contained in:
Matthew Gramigna 2024-02-10 13:26:39 -05:00 committed by GitHub
parent 2f3ad9da4c
commit 67839a967b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 189 additions and 1 deletions

View file

@ -27,6 +27,7 @@ mod lua;
mod nu;
mod ocaml;
mod php;
mod prisma;
mod purescript;
mod python;
mod ruby;
@ -97,6 +98,7 @@ pub fn init(
tree_sitter_ocaml::language_ocaml_interface(),
),
("php", tree_sitter_php::language_php()),
("prisma", tree_sitter_prisma_io::language()),
("proto", tree_sitter_proto::language()),
#[cfg(not(target_os = "linux"))]
("purescript", tree_sitter_purescript::language()),
@ -290,12 +292,21 @@ pub fn init(
language("nu", vec![Arc::new(nu::NuLanguageServer {})]);
language("ocaml", vec![Arc::new(ocaml::OCamlLspAdapter)]);
language("ocaml-interface", vec![Arc::new(ocaml::OCamlLspAdapter)]);
language("vue", vec![Arc::new(vue::VueLspAdapter::new(node_runtime))]);
language(
"vue",
vec![Arc::new(vue::VueLspAdapter::new(node_runtime.clone()))],
);
language("uiua", vec![Arc::new(uiua::UiuaLanguageServer {})]);
language("proto", vec![]);
language("terraform", vec![]);
language("terraform-vars", vec![]);
language("hcl", vec![]);
language(
"prisma",
vec![Arc::new(prisma::PrismaLspAdapter::new(
node_runtime.clone(),
))],
);
}
#[cfg(any(test, feature = "test-support"))]