Add auto-indent support

This commit is contained in:
Jeremy Soller 2023-11-16 09:00:48 -07:00
parent b1c6505832
commit f0d9bc06e1
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 14 additions and 2 deletions

View file

@ -142,6 +142,7 @@ impl fmt::Display for KeyBind {
#[derive(Clone, CosmicConfigEntry, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct Config {
pub app_theme: AppTheme,
pub auto_indent: bool,
pub font_name: String,
pub font_size: u16,
pub syntax_theme_dark: String,
@ -156,6 +157,7 @@ impl Default for Config {
fn default() -> Self {
Self {
app_theme: AppTheme::System,
auto_indent: true,
font_name: "Fira Mono".to_string(),
font_size: 14,
syntax_theme_dark: "gruvbox-dark".to_string(),