-
For example if function(_)
if cmp.visible() then
cmp.mapping.confirm({ select = true })
else
cmp.mapping.complete()
end
end I don't have any other existing mapping for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See
It means that function(_)
if cmp.visible() then
cmp.confirm({ select = true })
else
cmp.complete()
end
end |
Beta Was this translation helpful? Give feedback.
See
:h cmp-mapping
, at the end of section, it saysIt means that
cmp.mapping
is used in the form ofkey = cmp.mapping.*
, using custom callback means you have to write it in the followinhg form