1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use lspower::{LspService, Server};
mod capabilities;
mod core;
mod server;
mod sway_config;
mod utils;
use server::Backend;
pub async fn start() {
let stdin = tokio::io::stdin();
let stdout = tokio::io::stdout();
let (service, messages) = LspService::new(Backend::new);
Server::new(stdin, stdout)
.interleave(messages)
.serve(service)
.await;
}