Include key bindings in config

This commit is contained in:
Joscha 2023-04-27 18:13:43 +02:00
parent e1c3a463b2
commit c53e3c262e
3 changed files with 305 additions and 19 deletions

View file

@ -3,6 +3,7 @@
use std::collections::HashMap;
use std::path::PathBuf;
use cove_input::KeyBinding;
pub use cove_macro::Document;
#[derive(Clone, Default)]
@ -192,3 +193,12 @@ impl<I: Document> Document for HashMap<String, I> {
doc
}
}
impl Document for KeyBinding {
fn doc() -> Doc {
let mut doc = Doc::default();
doc.value_info.required = Some(true);
doc.value_info.r#type = Some("key binding".to_string());
doc
}
}