Reversed builtin completion insert text

This commit is contained in:
Alexandros Naskos 2021-03-26 09:23:40 +02:00
parent 2ff6476ce1
commit eb0a31d282
No known key found for this signature in database
GPG Key ID: 02BF2E72B0EA32D2

View File

@ -1027,10 +1027,10 @@ fn completeBuiltin(arena: *std.heap.ArenaAllocator, id: types.RequestId, config:
};
if (config.enable_snippets) {
builtin_completions.?[idx].insertText = builtin.snippet;
builtin_completions.?[idx].insertText = builtin.snippet[1..];
builtin_completions.?[idx].insertTextFormat = .Snippet;
} else {
builtin_completions.?[idx].insertText = builtin.name;
builtin_completions.?[idx].insertText = builtin.name[1..];
}
}
}