From 2150335e86bf31c891dcd59ab92852fd554688a2 Mon Sep 17 00:00:00 2001 From: Rolo Date: Tue, 31 Dec 2024 03:34:17 -0800 Subject: [PATCH] refactor: rename config.rs to icons.rs and move to top level --- helix-view/src/editor.rs | 5 ++--- helix-view/src/{editor/config.rs => icons.rs} | 0 helix-view/src/lib.rs | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) rename helix-view/src/{editor/config.rs => icons.rs} (100%) diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index c305ef25a7b4..34f4354810c3 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -7,6 +7,7 @@ use crate::{ events::DocumentFocusLost, graphics::{CursorKind, Rect}, handlers::Handlers, + icons, info::Info, input::KeyEvent, register::Registers, @@ -14,18 +15,16 @@ use crate::{ tree::{self, Tree}, Document, DocumentId, View, ViewId, }; -use config::Icons; use dap::StackFrame; use helix_event::dispatch; use helix_vcs::DiffProviderRegistry; +use icons::Icons; use futures_util::stream::select_all::SelectAll; use futures_util::{future, StreamExt}; use helix_lsp::{Call, LanguageServerId}; use tokio_stream::wrappers::UnboundedReceiverStream; -mod config; - use std::{ borrow::Cow, cell::Cell, diff --git a/helix-view/src/editor/config.rs b/helix-view/src/icons.rs similarity index 100% rename from helix-view/src/editor/config.rs rename to helix-view/src/icons.rs diff --git a/helix-view/src/lib.rs b/helix-view/src/lib.rs index d54b49ef5400..a5b451592c14 100644 --- a/helix-view/src/lib.rs +++ b/helix-view/src/lib.rs @@ -10,6 +10,7 @@ pub mod events; pub mod graphics; pub mod gutter; pub mod handlers; +pub mod icons; pub mod info; pub mod input; pub mod keyboard;