Reversed builtin completion insert text
This commit is contained in:
parent
2ff6476ce1
commit
eb0a31d282
@ -1027,10 +1027,10 @@ fn completeBuiltin(arena: *std.heap.ArenaAllocator, id: types.RequestId, config:
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (config.enable_snippets) {
|
if (config.enable_snippets) {
|
||||||
builtin_completions.?[idx].insertText = builtin.snippet;
|
builtin_completions.?[idx].insertText = builtin.snippet[1..];
|
||||||
builtin_completions.?[idx].insertTextFormat = .Snippet;
|
builtin_completions.?[idx].insertTextFormat = .Snippet;
|
||||||
} else {
|
} else {
|
||||||
builtin_completions.?[idx].insertText = builtin.name;
|
builtin_completions.?[idx].insertText = builtin.name[1..];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user