We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0eabfb + da14eb4 commit af99247Copy full SHA for af99247
src/config.rs
@@ -77,6 +77,7 @@ impl Config {
77
Err(e) => return Err(format!("Unable to load config file: {e}")),
78
};
79
80
+ cfg.set_default_bg_for_tokens();
81
cfg.expand_home_dir_refs(&home);
82
83
Ok(cfg)
@@ -103,6 +104,15 @@ impl Config {
103
104
Err("runtime config updates are not currently supported".to_owned())
105
}
106
107
+ fn set_default_bg_for_tokens(&mut self) {
108
+ for style in self.colorscheme.syntax.values_mut() {
109
+ // Use default colorscheme's background color if none is specified
110
+ if style.bg.is_none() {
111
+ style.bg = Some(self.colorscheme.bg);
112
+ }
113
114
115
+
116
fn expand_home_dir_refs(&mut self, home: &str) {
117
for s in [
118
&mut self.tree_sitter.parser_dir,
0 commit comments