You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-term/src/main.rs

40 lines
850 B
Rust

#![allow(unused)]
mod application;
5 years ago
use application::Application;
5 years ago
use clap::{App, Arg};
use std::path::PathBuf;
5 years ago
use anyhow::Error;
5 years ago
static EX: smol::Executor = smol::Executor::new();
5 years ago
fn main() -> Result<(), Error> {
let args = clap::app_from_crate!()
.arg(
Arg::new("files")
.about("Sets the input file to use")
.required(true)
.multiple(true)
.index(1),
)
.get_matches();
5 years ago
for _ in 0..num_cpus::get() {
std::thread::spawn(move || smol::block_on(EX.run(smol::future::pending::<()>())));
}
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 {}
});
5 years ago
Ok(())
}