diff options
author | Nathan Vegdahl | 2021-07-01 17:41:20 +0000 |
---|---|---|
committer | Nathan Vegdahl | 2021-07-02 02:06:52 +0000 |
commit | 702a0491db0fef8ee15cd6fcff3138812da2c2aa (patch) | |
tree | 42a1194f0b43465ca1125c0c2209a75b0b158389 /helix-term/src/ui/editor.rs | |
parent | 79f096963c75d107cd1f415666fb21a9cfd3cbd6 (diff) |
Remove #[allow(unused)] from helix-term, and fix unused imports.
Lots of other warning still left. Will address in subsequent commits.
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r-- | helix-term/src/ui/editor.rs | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index b55a830e..70f81af9 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1,32 +1,28 @@ use crate::{ commands, - compositor::{Component, Compositor, Context, EventResult}, + compositor::{Component, Context, EventResult}, key, - keymap::{self, Keymaps}, + keymap::Keymaps, ui::{Completion, ProgressSpinners}, }; use helix_core::{ coords_at_pos, graphemes::ensure_grapheme_boundary, - syntax::{self, Highlight, HighlightEvent}, + syntax::{self, HighlightEvent}, LineEnding, Position, Range, }; -use helix_lsp::LspProgressMap; use helix_view::{ document::Mode, - graphics::{Color, CursorKind, Modifier, Rect, Style}, + graphics::{CursorKind, Modifier, Rect, Style}, input::KeyEvent, keyboard::{KeyCode, KeyModifiers}, Document, Editor, Theme, View, }; use std::borrow::Cow; -use crossterm::{ - cursor, - event::{read, Event, EventStream}, -}; -use tui::{backend::CrosstermBackend, buffer::Buffer as Surface}; +use crossterm::event::Event; +use tui::buffer::Buffer as Surface; pub struct EditorView { keymaps: Keymaps, |