Update setup wizard for ST4 (#461)

* Set include_at_in_builtins to false if Sublime Text version > 4000
This commit is contained in:
alvv-z 2022-07-24 11:58:26 +00:00 committed by GitHub
parent 0ecdeeecb1
commit e8bbb20783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ pub fn wizard(allocator: std.mem.Allocator) !void {
const inlay_hints = try askBool("Do you want to enable inlay hints?");
const operator_completions = try askBool("Do you want to enable .* and .? completions?");
const include_at_in_builtins = switch (editor) {
.Sublime => true,
.Sublime => !try askBool("Are you using a Sublime Text version > 4000?"),
.VSCode, .Kate, .Neovim, .Vim8, .Emacs, .Doom, .Spacemacs => false,
else => try askBool("Should the @ sign be included in completions of builtin functions?\nChange this later if `@inc` completes to `include` or `@@include`"),
};