From eb0a31d2826e74878cb291654e8ccdb5b8db8776 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Fri, 26 Mar 2021 09:23:40 +0200 Subject: [PATCH] Reversed builtin completion insert text --- src/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 97878fb..a9c60bb 100644 --- a/src/main.zig +++ b/src/main.zig @@ -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..]; } } }