@@ -156,6 +156,7 @@ T['setup()']['creates `config` field'] = function()
156
156
expect_config (' lsp_completion.source_func' , ' completefunc' )
157
157
expect_config (' lsp_completion.auto_setup' , true )
158
158
expect_config (' lsp_completion.process_items' , vim .NIL )
159
+ expect_config (' lsp_completion.snippet_insert' , vim .NIL )
159
160
expect_config (' fallback_action' , ' <C-n>' )
160
161
expect_config (' mappings.force_twostep' , ' <C-Space>' )
161
162
expect_config (' mappings.force_fallback' , ' <A-Space>' )
@@ -198,7 +199,8 @@ T['setup()']['validates `config` argument'] = function()
198
199
' "completefunc" or "omnifunc"'
199
200
)
200
201
expect_config_error ({ lsp_completion = { auto_setup = ' a' } }, ' lsp_completion.auto_setup' , ' boolean' )
201
- expect_config_error ({ lsp_completion = { process_items = ' a' } }, ' lsp_completion.process_items' , ' function' )
202
+ expect_config_error ({ lsp_completion = { process_items = ' a' } }, ' lsp_completion.process_items' , ' callable' )
203
+ expect_config_error ({ lsp_completion = { snippet_insert = ' a' } }, ' lsp_completion.snippet_insert' , ' callable' )
202
204
expect_config_error ({ fallback_action = 1 }, ' fallback_action' , ' function or string' )
203
205
expect_config_error ({ mappings = ' a' }, ' mappings' , ' table' )
204
206
expect_config_error ({ mappings = { force_twostep = 1 } }, ' mappings.force_twostep' , ' string' )
0 commit comments