diff options
author | pommicket <pommicket@gmail.com> | 2022-12-25 21:55:42 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-25 21:55:42 -0500 |
commit | 9602ae4d8582c3ccdb9e8c1561ad306491713be4 (patch) | |
tree | f3f02a332daa19ace69dbc9c0a9a63be85a41ad9 /config.c | |
parent | 4bd6bbe54b291d8d65997e998a2a3946293adcdf (diff) |
global lsp-enabled setting
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -251,6 +251,7 @@ static OptionBool const options_bool[] = { {"indent-with-spaces", &options_zero.indent_with_spaces, true}, {"trigger-characters", &options_zero.trigger_characters, true}, {"identifier-trigger-characters", &options_zero.identifier_trigger_characters, true}, + {"lsp-enabled", &options_zero.lsp_enabled, true}, }; static OptionU8 const options_u8[] = { {"tab-width", &options_zero.tab_width, 1, 100, true}, @@ -778,11 +779,11 @@ static void config_parse_line(ConfigReader *cfg, Settings *settings, const Confi bool const is_floating = *endptr == '\0'; bool is_bool = false; bool boolean = false; - #define BOOL_HELP "(should be yes/no/on/off)" - if (streq(value, "yes") || streq(value, "on")) { + #define BOOL_HELP "(should be yes/no/on/off/true/false)" + if (streq(value, "yes") || streq(value, "on") || streq(value, "true")) { is_bool = true; boolean = true; - } else if (streq(value, "no") || streq(value, "off")) { + } else if (streq(value, "no") || streq(value, "off") || streq(value, "false")) { is_bool = true; boolean = false; } |