aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/Cargo.toml1
-rw-r--r--helix-term/src/main.rs11
2 files changed, 9 insertions, 3 deletions
diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml
index ed546090..aa91a095 100644
--- a/helix-term/Cargo.toml
+++ b/helix-term/Cargo.toml
@@ -14,6 +14,7 @@ path = "src/main.rs"
[dependencies]
helix-core = { path = "../helix-core" }
helix-view = { path = "../helix-view", features = ["term"]}
+helix-lsp = { path = "../helix-lsp"}
anyhow = "1"
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs
index e14a328f..c35c84d2 100644
--- a/helix-term/src/main.rs
+++ b/helix-term/src/main.rs
@@ -26,9 +26,14 @@ fn main() -> Result<(), Error> {
std::thread::spawn(move || smol::block_on(EX.run(smol::future::pending::<()>())));
}
- smol::block_on(EX.run(async {
- Application::new(args).unwrap().run().await;
- }));
+ let mut lsp = helix_lsp::Client::start(&EX, "rust-analyzer", &[]);
+
+ smol::block_on(async {
+ let res = lsp.initialize().await;
+ // Application::new(args).unwrap().run().await;
+
+ loop {}
+ });
Ok(())
}