Include key bindings in config
This commit is contained in:
parent
e1c3a463b2
commit
c53e3c262e
3 changed files with 305 additions and 19 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue