summaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs31
1 files changed, 8 insertions, 23 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 3d20e1b3..1939e88c 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -1,37 +1,23 @@
use helix_core::syntax;
-use helix_lsp::{lsp, LspProgressMap};
-use helix_view::{document::Mode, graphics::Rect, theme, Document, Editor, Theme, View};
-
-use crate::{
- args::Args,
- compositor::Compositor,
- config::Config,
- job::Jobs,
- keymap::Keymaps,
- ui::{self, Spinner},
-};
+use helix_lsp::{lsp, util::lsp_pos_to_pos, LspProgressMap};
+use helix_view::{theme, Editor};
+
+use crate::{args::Args, compositor::Compositor, config::Config, job::Jobs, ui};
-use log::{error, info};
+use log::error;
use std::{
- collections::HashMap,
- future::Future,
- io::{self, stdout, Stdout, Write},
- path::PathBuf,
- pin::Pin,
+ io::{stdout, Write},
sync::Arc,
- time::Duration,
};
-use anyhow::{Context, Error};
+use anyhow::Error;
use crossterm::{
event::{Event, EventStream},
execute, terminal,
};
-use futures_util::{future, stream::FuturesUnordered};
-
pub struct Application {
compositor: Compositor,
editor: Editor,
@@ -239,10 +225,9 @@ impl Application {
.into_iter()
.filter_map(|diagnostic| {
use helix_core::{
- diagnostic::{Range, Severity, Severity::*},
+ diagnostic::{Range, Severity::*},
Diagnostic,
};
- use helix_lsp::{lsp, util::lsp_pos_to_pos};
use lsp::DiagnosticSeverity;
let language_server = doc.language_server().unwrap();