fix: annotate complete option as optional (#1475)
This commit is contained in:
@@ -133,7 +133,7 @@ mapping.preset.cmdline = function(override)
|
|||||||
end
|
end
|
||||||
|
|
||||||
---Invoke completion
|
---Invoke completion
|
||||||
---@param option cmp.CompleteParams
|
---@param option? cmp.CompleteParams
|
||||||
mapping.complete = function(option)
|
mapping.complete = function(option)
|
||||||
return function(fallback)
|
return function(fallback)
|
||||||
if not require('cmp').complete(option) then
|
if not require('cmp').complete(option) then
|
||||||
|
|||||||
Reference in New Issue
Block a user