diff options
author | Blaž Hrastnik | 2020-10-20 04:58:34 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-12-03 04:10:32 +0000 |
commit | f9bfba4d96f80eb41beb91702558f6f165a0e70f (patch) | |
tree | e2e0296a01645cdcb7782a9bd8b4f1a55d3fbfd9 /helix-term/src/main.rs | |
parent | 64b5b23315f12125a2c5b2f810fe5ac285bdfa79 (diff) |
Reroute LSP notification events into the main app event loop.
Diffstat (limited to 'helix-term/src/main.rs')
-rw-r--r-- | helix-term/src/main.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index 07f1ffff..de3a0175 100644 --- a/helix-term/src/main.rs +++ b/helix-term/src/main.rs @@ -26,15 +26,15 @@ fn main() -> Result<(), Error> { std::thread::spawn(move || smol::block_on(EX.run(smol::future::pending::<()>()))); } - let mut lsp = helix_lsp::Client::start(&EX, "rust-analyzer", &[]); + // let mut lsp = helix_lsp::Client::start(&EX, "rust-analyzer", &[]); smol::block_on(async { - let res = lsp.initialize().await; - let state = helix_core::State::load("test.rs".into(), &[]).unwrap(); - let res = lsp.text_document_did_open(&state).await; - loop {} + // let res = lsp.initialize().await; + // let state = helix_core::State::load("test.rs".into(), &[]).unwrap(); + // let res = lsp.text_document_did_open(&state).await; + // loop {} - // Application::new(args).unwrap().run().await; + Application::new(args, &EX).unwrap().run().await; }); Ok(()) |