This commit is contained in:
Mikayla Maki 2023-07-13 22:32:29 -07:00
parent ff8a89a075
commit f1b034d4f8
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View file

@ -16,8 +16,8 @@ mod lua;
mod python;
mod ruby;
mod rust;
mod typescript;
mod svelte;
mod typescript;
mod yaml;
// 1. Add tree-sitter-{language} parser to zed crate
@ -141,7 +141,9 @@ pub fn init(languages: Arc<LanguageRegistry>, node_runtime: Arc<NodeRuntime>) {
language(
"svelte",
tree_sitter_svelte::language(),
vec![Arc::new(svelte::SvelteLspAdapter::new(node_runtime.clone()))],
vec![Arc::new(svelte::SvelteLspAdapter::new(
node_runtime.clone(),
))],
);
}

View file

@ -14,8 +14,7 @@ use std::{
};
use util::ResultExt;
const SERVER_PATH: &'static str =
"node_modules/svelte-language-server/bin/server.js";
const SERVER_PATH: &'static str = "node_modules/svelte-language-server/bin/server.js";
fn server_binary_arguments(server_path: &Path) -> Vec<OsString> {
vec![server_path.into(), "--stdio".into()]