-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Description
why does Config use a hashmap for the different modes? Since Mode is an enum with 3 variants, a [KeyTrie; 3] might be better.
(or a struct that wraps said array)
#[derive(Debug, Clone, PartialEq)]
pub struct Config {
pub theme: Option<theme::Config>,
pub keys: HashMap<Mode, KeyTrie>, // why use a hashmap?
pub editor: helix_view::editor::Config,
}heres the Mode enum
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum Mode {
Normal = 0,
Select = 1,
Insert = 2,
}Metadata
Metadata
Assignees
Labels
No labels