diff options
author | Blaž Hrastnik | 2020-10-18 09:01:06 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-12-03 04:04:42 +0000 |
commit | f03830b047f0db9d9bb4576f771b5988329be46f (patch) | |
tree | e796fed4764bd4466e27293aed5a8ed6cb03a4e8 /helix-term | |
parent | 8adcf5083ffc12532ecca7594a2192acd954dd3a (diff) |
wip: Basic LSP lifecycle requests/notifications.
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/Cargo.toml | 1 | ||||
-rw-r--r-- | helix-term/src/main.rs | 11 |
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(()) } |