mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
fmt
This commit is contained in:
parent
ff8a89a075
commit
f1b034d4f8
2 changed files with 5 additions and 4 deletions
|
@ -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(),
|
||||
))],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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()]
|
||||
|
|
Loading…
Reference in a new issue