@@ -194,6 +194,66 @@ defmodule NextLS.Snippet do
194194 }
195195 end
196196
197+ def get ( "test/2" , nil , _opts ) do
198+ % {
199+ kind: GenLSP.Enumerations.CompletionItemKind . snippet ( ) ,
200+ insert_text_format: GenLSP.Enumerations.InsertTextFormat . snippet ( ) ,
201+ insert_text: """
202+ test "$1" do
203+ $0
204+ end
205+ """
206+ }
207+ end
208+
209+ def get ( "test/3" , nil , _opts ) do
210+ % {
211+ kind: GenLSP.Enumerations.CompletionItemKind . snippet ( ) ,
212+ insert_text_format: GenLSP.Enumerations.InsertTextFormat . snippet ( ) ,
213+ insert_text: """
214+ test "$1", %{$2: $3} do
215+ $0
216+ end
217+ """
218+ }
219+ end
220+
221+ def get ( "describe/2" , nil , _opts ) do
222+ % {
223+ kind: GenLSP.Enumerations.CompletionItemKind . snippet ( ) ,
224+ insert_text_format: GenLSP.Enumerations.InsertTextFormat . snippet ( ) ,
225+ insert_text: """
226+ describe "$1" do
227+ $0
228+ end
229+ """
230+ }
231+ end
232+
233+ def get ( "setup/1" , nil , _opts ) do
234+ % {
235+ kind: GenLSP.Enumerations.CompletionItemKind . snippet ( ) ,
236+ insert_text_format: GenLSP.Enumerations.InsertTextFormat . snippet ( ) ,
237+ insert_text: """
238+ setup do
239+ $0
240+ end
241+ """
242+ }
243+ end
244+
245+ def get ( "setup/2" , nil , _opts ) do
246+ % {
247+ kind: GenLSP.Enumerations.CompletionItemKind . snippet ( ) ,
248+ insert_text_format: GenLSP.Enumerations.InsertTextFormat . snippet ( ) ,
249+ insert_text: """
250+ setup ${1:context} do
251+ $0
252+ end
253+ """
254+ }
255+ end
256+
197257 def get ( _label , _trigger_character , _opts ) do
198258 nil
199259 end
0 commit comments