|
|
|
|
@ -134,11 +134,11 @@ void Config::read(const JSON &cfg) {
|
|
|
|
|
source.smart_brackets = true; |
|
|
|
|
source.show_map = source_json.boolean("show_map", JSON::ParseOptions::accept_string); |
|
|
|
|
source.map_font_size = source_json.integer("map_font_size", JSON::ParseOptions::accept_string); |
|
|
|
|
source.space_between_lines = source_json.integer("space_between_lines", JSON::ParseOptions::accept_string); |
|
|
|
|
source.show_git_diff = source_json.boolean("show_git_diff", JSON::ParseOptions::accept_string); |
|
|
|
|
source.show_background_pattern = source_json.boolean("show_background_pattern", JSON::ParseOptions::accept_string); |
|
|
|
|
source.show_right_margin = source_json.boolean("show_right_margin", JSON::ParseOptions::accept_string); |
|
|
|
|
source.right_margin_position = source_json.integer("right_margin_position", JSON::ParseOptions::accept_string); |
|
|
|
|
source.pixels_between_lines = source_json.integer("pixels_between_lines", JSON::ParseOptions::accept_string); |
|
|
|
|
source.spellcheck_language = source_json.string("spellcheck_language"); |
|
|
|
|
auto default_tab_char_str = source_json.string("default_tab_char"); |
|
|
|
|
if(default_tab_char_str.size() == 1) |
|
|
|
|
@ -280,11 +280,11 @@ std::string Config::default_config() {
|
|
|
|
|
"smart_inserts": true, |
|
|
|
|
"show_map": true, |
|
|
|
|
"map_font_size": 1, |
|
|
|
|
"space_between_lines": 1, |
|
|
|
|
"show_git_diff": true, |
|
|
|
|
"show_background_pattern": true, |
|
|
|
|
"show_right_margin": false, |
|
|
|
|
"right_margin_position": 80, |
|
|
|
|
"pixels_between_lines": 0, |
|
|
|
|
"spellcheck_language_comment": "Use \"\" to set language from your locale settings", |
|
|
|
|
"spellcheck_language": "en_US", |
|
|
|
|
"auto_tab_char_and_size_comment": "Use false to always use default tab char and size", |
|
|
|
|
|