@@ -12,7 +12,7 @@ use toml::de::Error as TomlError;
12
12
pub struct Config {
13
13
pub theme : Option < String > ,
14
14
#[ serde( default ) ]
15
- pub unbind_defaults : bool ,
15
+ pub unbind_default_keys : bool ,
16
16
#[ serde( default ) ]
17
17
pub keys : HashMap < Mode , Keymap > ,
18
18
#[ serde( default ) ]
@@ -40,15 +40,15 @@ impl Config {
40
40
pub fn new ( ) -> Self {
41
41
Config {
42
42
theme : None ,
43
- unbind_defaults : false ,
43
+ unbind_default_keys : false ,
44
44
keys : Default :: default ( ) ,
45
45
editor : Default :: default ( ) ,
46
46
}
47
47
}
48
48
pub fn with_default_keys ( ) -> Self {
49
49
Config {
50
50
theme : None ,
51
- unbind_defaults : false ,
51
+ unbind_default_keys : false ,
52
52
keys : default_keys ( ) ,
53
53
editor : helix_view:: editor:: Config :: default ( ) ,
54
54
}
@@ -90,7 +90,7 @@ impl Config {
90
90
pub fn load ( config_path : PathBuf ) -> Result < Config , ConfigLoadError > {
91
91
match std:: fs:: read_to_string ( config_path) {
92
92
Ok ( config) => match toml:: from_str :: < Config > ( & config) {
93
- Ok ( config) if config. unbind_defaults => {
93
+ Ok ( config) if config. unbind_default_keys => {
94
94
Ok ( config. replace_into_keys ( Config :: with_default_keys ( ) ) )
95
95
}
96
96
Ok ( config) => Ok ( config. merge_into_keys ( Config :: with_default_keys ( ) ) ) ,
0 commit comments