File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ function source:get_completions(context)
38
38
return async .task
39
39
.new (function (resolve ) return self .module :get_completions (context , resolve ) end )
40
40
:map (function (response )
41
+ if response == nil then response = { is_incomplete_forward = true , is_incomplete_backward = true , items = {} } end
41
42
response .context = context
42
-
43
43
self .last_response = response
44
44
45
45
-- add score offset if configured
Original file line number Diff line number Diff line change 19
19
20
20
function snippets :get_completions (context , callback )
21
21
local filetype = vim .bo .filetype
22
- if vim .tbl_contains (self .registry .config .ignored_filetypes , filetype ) then
23
- return callback ({ is_incomplete_forward = false , is_incomplete_backward = false , items = {} })
24
- end
22
+ if vim .tbl_contains (self .registry .config .ignored_filetypes , filetype ) then return callback () end
25
23
26
24
if not self .cache [filetype ] then
27
25
local global_snippets = self .registry :get_global_snippets ()
You can’t perform that action at this time.
0 commit comments