snippetCompletion

fun snippetCompletion(template: String, completion: Completion): Completion

Create a Completion that, when accepted, inserts a snippet.

Parameters

template

The snippet template string.

completion

A base completion whose Completion.label, Completion.detail, etc. are used. The Completion.applyFn is overridden with the snippet applicator.