Implement tab width config

This commit is contained in:
Jeremy Soller 2023-11-16 08:44:23 -07:00
parent 67d2e4adb7
commit b1c6505832
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 25 additions and 5 deletions

View file

@ -146,6 +146,7 @@ pub struct Config {
pub font_size: u16,
pub syntax_theme_dark: String,
pub syntax_theme_light: String,
pub tab_width: u16,
pub vim_bindings: bool,
pub word_wrap: bool,
pub keybinds: HashMap<KeyBind, Action>,
@ -159,6 +160,7 @@ impl Default for Config {
font_size: 14,
syntax_theme_dark: "gruvbox-dark".to_string(),
syntax_theme_light: "gruvbox-light".to_string(),
tab_width: 4,
vim_bindings: false,
word_wrap: false,
keybinds: KeyBind::load(),