aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-18 09:01:06 +0000
committerBlaž Hrastnik2020-12-03 04:04:42 +0000
commitf03830b047f0db9d9bb4576f771b5988329be46f (patch)
treee796fed4764bd4466e27293aed5a8ed6cb03a4e8 /helix-term/src
parent8adcf5083ffc12532ecca7594a2192acd954dd3a (diff)
wip: Basic LSP lifecycle requests/notifications.
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/main.rs11
1 files changed, 8 insertions, 3 deletions
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(())
}